Hi Edgar,
actually i think this method needs to be updated to include all the
sample rates that are declared in the original Symbian header.
see sounddevice.h in epoc32\include\mmf\server
88KHz, 96KHz, 12KHz, 24KHz, and 64KHz seem to be missing from this impl.
br,kg
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ext Edgar
Luevano
Sent: Wednesday, December 14, 2005 6:15 PM
To: audio-dev
Subject: [Audio-dev] audio settings (bitrate)

Hi all,
In the file audio_session-mmf.cpp the function static TMMFSampleRate
NumberToFlag(TInt num) is called before the audio settings are passed to
DevSound.

Playing a file I look to the parameter num in NumberToFlag(TInt num) and
it is 12000, but because this case is not taken in account the
samplerate is set to EMMFSampleRate16000Hz (i.e the default look in the
piece of code below).

This result in having a fast play of the clip, I trying forcing it to
EMMFSampleRate11025Hz and it is played fine.

Should I modify the function static TMMFSampleRate NumberToFlag(TInt
num) to assign the closest flag to the samplerate it receives? or there
it is something else that needs to be fix for having a valid value for
the numeric samplerate?

Thanks and Regards
Edgar Luevano


static TMMFSampleRate NumberToFlag(TInt num) {
        DPRINTF(D_INFO,("HXSymbianAudioSession::HXSymbianAudioSession
NumberToFlag num = %d\n",num));
    switch(num)
    {
    case 8000:
        return  EMMFSampleRate8000Hz;
    case 11025:
        return  EMMFSampleRate11025Hz;
    case 16000:
        return  EMMFSampleRate16000Hz;
    case 22050:
        return  EMMFSampleRate22050Hz;
    case 32000:
        return  EMMFSampleRate32000Hz;
    case 44100:
        return  EMMFSampleRate44100Hz;
    case 48000:
        return  EMMFSampleRate48000Hz;
    default:
        break;
    }
    HX_ASSERT(FALSE);
    return EMMFSampleRate16000Hz;
}



Edgar Luevano
Dextratech Technologies
Monterrey, N.L
Mexico
+52 81 82202010
www.dextratech.com


_______________________________________________
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

Reply via email to