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

Unified Diff: media/cast/audio_receiver/audio_receiver.h

Issue 192843002: Cast:Adding signaling and infrastructure for adjustable delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 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 | media/cast/audio_receiver/audio_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/audio_receiver/audio_receiver.h
diff --git a/media/cast/audio_receiver/audio_receiver.h b/media/cast/audio_receiver/audio_receiver.h
index b2abfc2f4b04d86c10f8b309234b6370a0aa513f..2742399f33a8a4b5a2ed64da63d412663b09465d 100644
--- a/media/cast/audio_receiver/audio_receiver.h
+++ b/media/cast/audio_receiver/audio_receiver.h
@@ -53,7 +53,8 @@ class AudioReceiver : public base::NonThreadSafe,
// Extract a raw audio frame from the cast receiver.
// Actual decoding will be preformed on a designated audio_decoder thread.
- void GetRawAudioFrame(int number_of_10ms_blocks, int desired_frequency,
+ void GetRawAudioFrame(int number_of_10ms_blocks,
+ int desired_frequency,
const AudioFrameDecodedCallback& callback);
// Extract an encoded audio frame from the cast receiver.
@@ -62,8 +63,13 @@ class AudioReceiver : public base::NonThreadSafe,
// Should only be called from the main cast thread.
void IncomingPacket(scoped_ptr<Packet> packet);
+ // Update target audio delay used to compute the playout time. Rtcp
+ // will also be updated (will be included in all outgoing reports).
+ void SetTargetDelay(base::TimeDelta target_delay);
+
protected:
- void IncomingParsedRtpPacket(const uint8* payload_data, size_t payload_size,
+ void IncomingParsedRtpPacket(const uint8* payload_data,
+ size_t payload_size,
const RtpCastHeader& rtp_header);
private:
@@ -82,10 +88,12 @@ class AudioReceiver : public base::NonThreadSafe,
// Actual decoding implementation - should be called under the audio decoder
// thread.
- void DecodeAudioFrameThread(int number_of_10ms_blocks, int desired_frequency,
+ void DecodeAudioFrameThread(int number_of_10ms_blocks,
+ int desired_frequency,
const AudioFrameDecodedCallback callback);
void ReturnDecodedFrameWithPlayoutDelay(
- scoped_ptr<PcmAudioFrame> audio_frame, uint32 rtp_timestamp,
+ scoped_ptr<PcmAudioFrame> audio_frame,
+ uint32 rtp_timestamp,
const AudioFrameDecodedCallback callback);
// Return the playout time based on the current time and rtp timestamp.
« no previous file with comments | « no previous file | media/cast/audio_receiver/audio_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698