PDA

View Full Version : support audio file format


haozhou
02-28-2005, 01:00 PM
Is there any way to get the supported audio file format on BREW platform, such as MIDI, QCP, MP3, WAV...?

Thanks!

max
02-28-2005, 01:21 PM
You can always check the DDF beforehand...at runtime, you can query to see if there's a handler registered for a specific media format.

haozhou
03-01-2005, 06:06 AM
I tried to get the clsids by calling ISHELL_GETHandler().

media_clsid1 = ISHELL_GetHandler(m_pIShell, HTYPE_SOUND, "snd/midi");
media_clsid2 = ISHELL_GetHandler(m_pIShell, HTYPE_SOUND, "snd/mp3");
media_clsid3 = ISHELL_GetHandler(m_pIShell, HTYPE_SOUND, "snd/qcp");

However, I got the same clsid.

media_clsid1 = media_clsid2 = media_clsid3.

Did I make any mistake ?

haozhou
03-01-2005, 06:07 AM
By the way, what is the "DDF" ?

Thanks!

max
03-01-2005, 11:15 AM
Oops...the DDF is an internal version of the DDS with additional configuration parameters and so forth. I meant to say the DDS.