Hi Rajesh, I actually changed the AudioPushdown value from there :) Stepped thru the code and see that CHXAudioPlayer::Setup() did call SetGranularity and updated value as expected, but Resume still calls earlier than expected. Is there other value that it looks at before calling Resume?
--Khanh -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Tuesday, May 05, 2009 8:03 AM To: Nguyen, Khanh V; [email protected]; [email protected]; [email protected] Subject: RE: [Audio-dev] RE: delay Resume for DSP Device I have noticed that the base audio renderer overrides the pushdown value if the HELIX_CONFIG_MIN_PCM_PUSHDOWN_BYTES is enabled. In function CAudioRenderer::StartStream #ifdef HELIX_CONFIG_MIN_PCM_PUSHDOWN_BYTES if( m_pAudioPlayer ) { m_pAudioPlayer->QueryInterface(IID_IHXAudioPushdown2, (void**) &pAudioPushdown2); if( pAudioPushdown2 ) { pAudioPushdown2->SetAudioPushdown( MINIMAL_AUDIO_PUSHDOWN ); pAudioPushdown2->Release(); } } #endif // HELIX_CONFIG_MIN_PCM_PUSHDOWN_BYTES Not sure, if it helps. Thanks, Rajesh. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of ext Nguyen, Khanh V Sent: Monday, May 04, 2009 8:36 PM To: [email protected]; [email protected]; [email protected] Subject: RE: [Audio-dev] RE: delay Resume for DSP Device Oh. I could see that now. SetPushdownAudio was called before SetGranularity, but that shouldn't matter, since the value is saved in m_ulTargetPushdown. Somehow, I set the minimum pushdown to 2 seconds, my buffer is 1 second, but Resume always called before my buffer has been filled. Could you direct me to where in the code I can look to debug this? Thanks, --Khanh -----Original Message----- From: Eric Hyche [mailto:[email protected]] Sent: Monday, May 04, 2009 6:32 AM To: Nguyen, Khanh V; [email protected]; [email protected] Subject: RE: [Audio-dev] RE: delay Resume for DSP Device The granularity should already be getting set when the audio player is set up. The IHXPlayer calls CHXAudioPlayer::Setup(), which sets the granularity. CHXAudioPlayer::Setup in turn calls SetGranularity on the audio session. Eric ======================================= Eric Hyche ([email protected]) Principal Engineer RealNetworks, Inc. >-----Original Message----- >From: Nguyen, Khanh V [mailto:[email protected]] >Sent: Friday, May 01, 2009 7:25 PM >To: [email protected]; [email protected]; >[email protected] >Subject: RE: [Audio-dev] RE: delay Resume for DSP Device > >Thanks Eric. >I'm assuming that minimum audio pushdown can be changed with >SetAudioPushdown() call? I've stepping through the SetAudioPushdown() >call, but in the UpdateMininumPushdown(), it didn't do anything because >m_ulGranularity is 0. Does it mean I have to set granularity before I call >SetAudioPushdown to make sure the new minimum audio pushdown can be set? > >Thanks, >--Khanh > >>-----Original Message----- >>From: Eric Hyche [mailto:[email protected]] >>Sent: Friday, May 01, 2009 6:29 AM >>To: Nguyen, Khanh V; [email protected]; helix-client- >>[email protected] >>Subject: RE: [Audio-dev] RE: delay Resume for DSP Device >> >>Yes, you can be guaranteed that playback will not begin until the >>minimum audio pushdown has been satisfied. _______________________________________________ Audio-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/audio-dev _______________________________________________ Audio-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/audio-dev
