Sound files in bar files? | developer.brewmp.com Sound files in bar files? | developer.brewmp.com

Developer

Sound files in bar files?

Forums:

How do you guys put a sound file in a bar file? Do you guys add the sound file as an "image" ?

Thanks,

That's pretty much the only way to do it.
Remember that anything registered as an IImage in the resource file will be preceded by an IIMAGE header, so use the RESBLOB_DATA() macro (see comments under ISHELL_LoadResDataEx in the API docs - for some reason it's unmentioned elsewhere) to bypass this header and access the sound data.
(Note that this technique works for ANY kind of file, not just images/sound.)
Subsequently, use ISOUNDPLAYER with SDT_BUFFER to prepare/play the sound file.

That's pretty much the only way to do it.
Remember that anything registered as an IImage in the resource file will be preceded by an IIMAGE header, so use the RESBLOB_DATA() macro (see comments under ISHELL_LoadResDataEx in the API docs - for some reason it's unmentioned elsewhere) to bypass this header and access the sound data.
(Note that this technique works for ANY kind of file, not just images/sound.)
Subsequently, use ISOUNDPLAYER with SDT_BUFFER to prepare/play the sound file.

I have a question here,
I am having a lot of QCP files which i directly call as files from the folder using IMEDIA, i need to put all these into the BAR file and call from it. But looks like the ISHELL_LoadResSound loads the sound into ISoundPlayer handle, same happens if i use ISHELL_LoadResObject and give the handle as Sound handle,
What should i do to access the QCP files from BAR to IMedia and also if possible give me some explainations of using PMD files from BAR file too
PS:: Btw, I just noticed it , that this post is in 1.1 forum, but the question is for 2.0 forum as u can see it from I'm using IMEDIA.
So please forgive me to post it here, and help me out :)

I have a question here,
I am having a lot of QCP files which i directly call as files from the folder using IMEDIA, i need to put all these into the BAR file and call from it. But looks like the ISHELL_LoadResSound loads the sound into ISoundPlayer handle, same happens if i use ISHELL_LoadResObject and give the handle as Sound handle,
What should i do to access the QCP files from BAR to IMedia and also if possible give me some explainations of using PMD files from BAR file too
PS:: Btw, I just noticed it , that this post is in 1.1 forum, but the question is for 2.0 forum as u can see it from I'm using IMEDIA.
So please forgive me to post it here, and help me out :)

**Bump**
anyone who can get me some pointers on this will be great !!

**Bump**
anyone who can get me some pointers on this will be great !!