RE: [Audio-dev] RE: delay Resume for DSP Device

<[email protected]>
Newsgroups gmane.comp.multimedia.helix.devel
Message-ID <E2BCA93C601173448A14BD179A27A7FD0C0A1D58AD@NOK-EUMSG-03.mgdnok.nokia.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.