Bug 1839170 - Refactor Snap pulling, Add Firefox Snap Core22 and GNOME 42 SDK symbols...
[gecko.git] / dom / media / webaudio / AudioScheduledSourceNode.h
blob0102d4a6e88e19e712c9803b08fa3b33012399ba
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 {
15 class AudioContext;
17 class AudioScheduledSourceNode : public AudioNode {
18 public:
19 virtual void Start(double aWhen, ErrorResult& aRv) = 0;
20 virtual void Stop(double aWhen, ErrorResult& aRv) = 0;
22 IMPL_EVENT_HANDLER(ended)
24 protected:
25 AudioScheduledSourceNode(AudioContext* aContext, uint32_t aChannelCount,
26 ChannelCountMode aChannelCountMode,
27 ChannelInterpretation aChannelInterpretation);
28 virtual ~AudioScheduledSourceNode() = default;
31 } // namespace mozilla::dom
33 #endif