tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

AudioScheduledSourceNode.h (1049B)


      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/. */
      6 
      7 #ifndef AudioScheduledSourceNode_h_
      8 #define AudioScheduledSourceNode_h_
      9 
     10 #include "AudioNode.h"
     11 #include "mozilla/dom/AudioScheduledSourceNodeBinding.h"
     12 
     13 namespace mozilla::dom {
     14 
     15 class AudioContext;
     16 
     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;
     21 
     22  IMPL_EVENT_HANDLER(ended)
     23 
     24 protected:
     25  AudioScheduledSourceNode(AudioContext* aContext, uint32_t aChannelCount,
     26                           ChannelCountMode aChannelCountMode,
     27                           ChannelInterpretation aChannelInterpretation);
     28  virtual ~AudioScheduledSourceNode() = default;
     29 };
     30 
     31 }  // namespace mozilla::dom
     32 
     33 #endif