2008-11-06 20:53:20 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2012-11-14 19:46:40 +00:00
|
|
|
#if !defined(WaveDecoder_h_)
|
|
|
|
# define WaveDecoder_h_
|
2008-11-06 20:53:20 +00:00
|
|
|
|
2018-06-07 14:47:41 +00:00
|
|
|
# include "mozilla/UniquePtr.h"
|
|
|
|
# include "nsTArray.h"
|
|
|
|
|
2012-11-14 19:45:33 +00:00
|
|
|
namespace mozilla {
|
2008-11-06 20:53:20 +00:00
|
|
|
|
2017-01-18 00:59:03 +00:00
|
|
|
class MediaContainerType;
|
2018-06-07 14:47:41 +00:00
|
|
|
class TrackInfo;
|
2016-12-20 08:09:41 +00:00
|
|
|
|
2017-08-15 05:52:17 +00:00
|
|
|
class WaveDecoder {
|
2011-03-30 05:37:42 +00:00
|
|
|
public:
|
2016-12-20 08:09:41 +00:00
|
|
|
// Returns true if the Wave backend is pref'ed on, and we're running on a
|
|
|
|
// platform that is likely to have decoders for the format.
|
2017-01-18 00:59:03 +00:00
|
|
|
static bool IsSupportedType(const MediaContainerType& aContainerType);
|
2018-06-07 14:47:41 +00:00
|
|
|
static nsTArray<UniquePtr<TrackInfo>> GetTracksInfo(
|
|
|
|
const MediaContainerType& aType);
|
2008-11-06 20:53:20 +00:00
|
|
|
};
|
|
|
|
|
2012-11-14 19:45:33 +00:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2008-11-06 20:53:20 +00:00
|
|
|
#endif
|