mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
7f6f26e511
The implementation will be shared by most of the sub-classes except OggDecoder which needs to call demuxer->SetChainingEvents(). http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/dom/media/ogg/OggDecoder.cpp#25 This helps reducing code changes whenever we add a field to MediaFormatReaderInit. MozReview-Commit-ID: 5K8NY1oxol4 --HG-- extra : rebase_source : 7bc2a71ad9bd982ada51fd28d6a5b7c6f1d7395a extra : source : cccd49795938ce53cd8eee597ec0ea4859543c37
33 lines
948 B
C++
33 lines
948 B
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
|
/* 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/. */
|
|
#if !defined(WaveDecoder_h_)
|
|
#define WaveDecoder_h_
|
|
|
|
#include "ChannelMediaDecoder.h"
|
|
|
|
namespace mozilla {
|
|
|
|
class MediaContainerType;
|
|
|
|
class WaveDecoder : public ChannelMediaDecoder
|
|
{
|
|
public:
|
|
// MediaDecoder interface.
|
|
explicit WaveDecoder(MediaDecoderInit& aInit)
|
|
: ChannelMediaDecoder(aInit)
|
|
{
|
|
}
|
|
ChannelMediaDecoder* Clone(MediaDecoderInit& aInit) override;
|
|
|
|
// 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.
|
|
static bool IsSupportedType(const MediaContainerType& aContainerType);
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif
|