summaryrefslogtreecommitdiffstats
path: root/media/audio/mac
diff options
context:
space:
mode:
Diffstat (limited to 'media/audio/mac')
-rw-r--r--media/audio/mac/audio_output_mac.cc4
-rw-r--r--media/audio/mac/audio_output_mac_unittest.cc2
2 files changed, 4 insertions, 2 deletions
diff --git a/media/audio/mac/audio_output_mac.cc b/media/audio/mac/audio_output_mac.cc
index 657e91a..2f79233 100644
--- a/media/audio/mac/audio_output_mac.cc
+++ b/media/audio/mac/audio_output_mac.cc
@@ -160,7 +160,9 @@ void PCMQueueOutAudioOutputStream::RenderCallback(void* p_this,
if (!source)
return;
size_t capacity = buffer->mAudioDataBytesCapacity;
- size_t filled = source->OnMoreData(audio_stream, buffer->mAudioData, capacity);
+ // TODO(hclam): Provide pending bytes.
+ size_t filled = source->OnMoreData(audio_stream, buffer->mAudioData,
+ capacity, 0);
if (filled > capacity) {
// User probably overran our buffer.
audio_stream->HandleError(0);
diff --git a/media/audio/mac/audio_output_mac_unittest.cc b/media/audio/mac/audio_output_mac_unittest.cc
index d6abefd..d6908cb 100644
--- a/media/audio/mac/audio_output_mac_unittest.cc
+++ b/media/audio/mac/audio_output_mac_unittest.cc
@@ -19,7 +19,7 @@ TEST(MacAudioTest, SineWaveAudio16MonoTest) {
// TODO(cpu): Put the real test when the mock renderer is ported.
int16 buffer[samples] = { 0xffff };
- source.OnMoreData(NULL, buffer, sizeof(buffer));
+ source.OnMoreData(NULL, buffer, sizeof(buffer), 0);
EXPECT_EQ(0, buffer[0]);
EXPECT_EQ(5126, buffer[1]);
}