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

Unified Diff: chrome/browser/renderer_host/audio_renderer_host.h

Issue 661386: Add a parameter to CreateAudioStream to choose between standard and low-latency mode. (Closed)
Patch Set: . Created 10 years, 9 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 | « no previous file | chrome/browser/renderer_host/audio_renderer_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/audio_renderer_host.h
diff --git a/chrome/browser/renderer_host/audio_renderer_host.h b/chrome/browser/renderer_host/audio_renderer_host.h
index 78ae2925a3209f704870035695873ec0518b0d46..c17350e698e486ce021164e24ea36765a1066179 100644
--- a/chrome/browser/renderer_host/audio_renderer_host.h
+++ b/chrome/browser/renderer_host/audio_renderer_host.h
@@ -180,7 +180,8 @@ class AudioRendererHost
int sample_rate, // Sampling frequency/rate.
char bits_per_sample, // Number of bits per sample.
uint32 decoded_packet_size, // Number of bytes per packet.
- uint32 buffer_capacity // Number of bytes in the buffer.
+ uint32 buffer_capacity, // Number of bytes in the buffer.
+ bool low_latency // Use low-latency (socket) code
);
~IPCAudioSource();
@@ -288,7 +289,8 @@ class AudioRendererHost
// required properties. See IPCAudioSource::CreateIPCAudioSource() for more
// details.
void OnCreateStream(const IPC::Message& msg, int stream_id,
- const ViewHostMsg_Audio_CreateStream_Params& params);
+ const ViewHostMsg_Audio_CreateStream_Params& params,
+ bool low_latency);
// Starts buffering for the audio output stream. Delegates the start method
// call to the corresponding IPCAudioSource::Play().
« no previous file with comments | « no previous file | chrome/browser/renderer_host/audio_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698