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

Unified Diff: media/base/audio_bus.h

Issue 1769373003: AudioBus: Add a ToInterleavedFloat() method to AudioBus (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 side-by-side diff with in-line comments
Download patch
Index: media/base/audio_bus.h
diff --git a/media/base/audio_bus.h b/media/base/audio_bus.h
index d6bd874bb0c7c6c148252e306eff94afed8331ee..d3ab52e5eb7612405ea150171bd6e6a2fff5b69f 100644
--- a/media/base/audio_bus.h
+++ b/media/base/audio_bus.h
@@ -66,6 +66,10 @@ class MEDIA_EXPORT AudioBus {
// any unfilled frames when |frames| is less than frames().
void FromInterleaved(const void* source, int frames, int bytes_per_sample);
void ToInterleaved(int frames, int bytes_per_sample, void* dest) const;
+ void ToInterleavedFloat(int source_offset,
+ int destination_offset,
+ int num_channels,
+ float* buffer) const;
void ToInterleavedPartial(int start_frame, int frames, int bytes_per_sample,
void* dest) const;

Powered by Google App Engine
This is Rietveld 408576698