| Index: content/browser/renderer_host/media/audio_renderer_host.cc
|
| diff --git a/content/browser/renderer_host/media/audio_renderer_host.cc b/content/browser/renderer_host/media/audio_renderer_host.cc
|
| index 63c1f4006442b87ae5fdcb355b6edb40e18be85f..041ba3047ae5c16bad3a5dd7b71f3022cffbbb34 100644
|
| --- a/content/browser/renderer_host/media/audio_renderer_host.cc
|
| +++ b/content/browser/renderer_host/media/audio_renderer_host.cc
|
| @@ -201,15 +201,15 @@ void AudioRendererHost::OnCreateStream(
|
| DCHECK(LookupById(stream_id) == NULL);
|
|
|
| AudioParameters audio_params(params);
|
| - DCHECK_GT(audio_params.samples_per_packet, 0);
|
| + DCHECK_GT(audio_params.frames_per_buffer(), 0);
|
|
|
| - uint32 packet_size = audio_params.GetPacketSize();
|
| + uint32 buffer_size = audio_params.GetBytesPerBuffer();
|
|
|
| scoped_ptr<AudioEntry> entry(new AudioEntry());
|
|
|
| // Create the shared memory and share with the renderer process.
|
| uint32 shared_memory_size =
|
| - media::TotalSharedMemorySizeInBytes(packet_size);
|
| + media::TotalSharedMemorySizeInBytes(buffer_size);
|
| if (!entry->shared_memory.CreateAndMapAnonymous(shared_memory_size)) {
|
| // If creation of shared memory failed then send an error message.
|
| SendErrorMessage(stream_id);
|
|
|