1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef AudioScheduledSourceNode_h_
8 #define AudioScheduledSourceNode_h_
10 #include "AudioNode.h"
11 #include "mozilla/dom/AudioScheduledSourceNodeBinding.h"
13 namespace mozilla::dom
{
17 class AudioScheduledSourceNode
: public AudioNode
{
19 virtual void Start(double aWhen
, ErrorResult
& aRv
) = 0;
20 virtual void Stop(double aWhen
, ErrorResult
& aRv
) = 0;
22 IMPL_EVENT_HANDLER(ended
)
25 AudioScheduledSourceNode(AudioContext
* aContext
, uint32_t aChannelCount
,
26 ChannelCountMode aChannelCountMode
,
27 ChannelInterpretation aChannelInterpretation
);
28 virtual ~AudioScheduledSourceNode() = default;
31 } // namespace mozilla::dom