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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioIOCallback.h

Issue 1967393002: [DO NOT SUBMIT] AudioWorklet FS2: audio thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FS1-audioworklet-script-importing
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/audio/AudioIOCallback.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioIOCallback.h b/third_party/WebKit/Source/platform/audio/AudioIOCallback.h
index fa59684f66c231fd34a3636697bb88941bb62862..41eacc2b35b4d88475d341d21139c5ae234ff751 100644
--- a/third_party/WebKit/Source/platform/audio/AudioIOCallback.h
+++ b/third_party/WebKit/Source/platform/audio/AudioIOCallback.h
@@ -33,14 +33,16 @@ namespace blink {
class AudioBus;
-// Abstract base-class for isochronous audio I/O client.
+// Abstract base-class for isochronous render. (e.g. AudioDestinationNode)
class AudioIOCallback {
-public:
- // render() is called periodically to get the next render quantum of audio into destinationBus.
- // Optional audio input is given in sourceBus (if it's not 0).
- virtual void render(AudioBus* sourceBus, AudioBus* destinationBus, size_t framesToProcess) = 0;
+public:
virtual ~AudioIOCallback() { }
+
+ // render() is called periodically to get the next render quantum of audio
+ // into the destination bus. Optional external audio input is given in the
+ // source bus. (e.g. live audio input)
+ virtual void render(AudioBus* source, AudioBus* destination, size_t framesToProcess) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698