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

Unified Diff: media/base/audio_bus.cc

Issue 388563005: Add a ref counted audio bus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « media/base/audio_bus.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_bus.cc
diff --git a/media/base/audio_bus.cc b/media/base/audio_bus.cc
index e34c7489399695b747fe44672cc0a6780a17371d..c6236b642b7eb6384f1edb56a57610467f9a1b20 100644
--- a/media/base/audio_bus.cc
+++ b/media/base/audio_bus.cc
@@ -340,4 +340,15 @@ void AudioBus::SwapChannels(int a, int b) {
std::swap(channel_data_[a], channel_data_[b]);
}
+scoped_refptr<AudioBusRefCounted> AudioBusRefCounted::Create(
+ int channels, int frames) {
+ return scoped_refptr<AudioBusRefCounted>(
+ new AudioBusRefCounted(channels, frames));
+}
+
+AudioBusRefCounted::AudioBusRefCounted(int channels, int frames)
+ : AudioBus(channels, frames) {}
+
+AudioBusRefCounted::~AudioBusRefCounted() {}
+
} // namespace media
« no previous file with comments | « media/base/audio_bus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698