Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h

Issue 1865583002: Implement BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 16 matching lines...) Expand all
27 27
28 #include "modules/webaudio/AudioBuffer.h" 28 #include "modules/webaudio/AudioBuffer.h"
29 #include "modules/webaudio/AudioNode.h" 29 #include "modules/webaudio/AudioNode.h"
30 #include "platform/audio/AudioBus.h" 30 #include "platform/audio/AudioBus.h"
31 #include "platform/audio/AudioIOCallback.h" 31 #include "platform/audio/AudioIOCallback.h"
32 #include "platform/audio/AudioSourceProvider.h" 32 #include "platform/audio/AudioSourceProvider.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class AudioBus; 36 class AudioBus;
37 class AbstractAudioContext; 37 class BaseAudioContext;
38 38
39 class AudioDestinationHandler : public AudioHandler, public AudioIOCallback { 39 class AudioDestinationHandler : public AudioHandler, public AudioIOCallback {
40 public: 40 public:
41 AudioDestinationHandler(AudioNode&, float sampleRate); 41 AudioDestinationHandler(AudioNode&, float sampleRate);
42 ~AudioDestinationHandler() override; 42 ~AudioDestinationHandler() override;
43 43
44 // AudioHandler 44 // AudioHandler
45 void process(size_t) final { } // we're pulled by hardware so this is never called 45 void process(size_t) final { } // we're pulled by hardware so this is never called
46 46
47 // The audio hardware calls render() to get the next render quantum of audio into destinationBus. 47 // The audio hardware calls render() to get the next render quantum of audio into destinationBus.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 }; 92 };
93 93
94 class AudioDestinationNode : public AudioNode { 94 class AudioDestinationNode : public AudioNode {
95 DEFINE_WRAPPERTYPEINFO(); 95 DEFINE_WRAPPERTYPEINFO();
96 public: 96 public:
97 AudioDestinationHandler& audioDestinationHandler() const; 97 AudioDestinationHandler& audioDestinationHandler() const;
98 98
99 unsigned long maxChannelCount() const; 99 unsigned long maxChannelCount() const;
100 100
101 protected: 101 protected:
102 AudioDestinationNode(AbstractAudioContext&); 102 AudioDestinationNode(BaseAudioContext&);
103 }; 103 };
104 104
105 } // namespace blink 105 } // namespace blink
106 106
107 #endif // AudioDestinationNode_h 107 #endif // AudioDestinationNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698