Index: trunk/src/media/audio/win/audio_low_latency_output_win.cc |
=================================================================== |
--- trunk/src/media/audio/win/audio_low_latency_output_win.cc (revision 290374) |
+++ trunk/src/media/audio/win/audio_low_latency_output_win.cc (working copy) |
@@ -498,9 +498,13 @@ |
// Read a data packet from the registered client source and |
// deliver a delay estimate in the same callback to the client. |
+ // A time stamp is also stored in the AudioBuffersState. This |
+ // time stamp can be used at the client side to compensate for |
+ // the delay between the usage of the delay value and the time |
+ // of generation. |
int frames_filled = source_->OnMoreData( |
- audio_bus_.get(), audio_delay_bytes); |
+ audio_bus_.get(), AudioBuffersState(0, audio_delay_bytes)); |
uint32 num_filled_bytes = frames_filled * format_.Format.nBlockAlign; |
DCHECK_LE(num_filled_bytes, packet_size_bytes_); |