Creating a resource file for sound | developer.brewmp.com Creating a resource file for sound | developer.brewmp.com

Developer

Creating a resource file for sound

Forums:

Hi all,
I am using midi sound files. I want to create a resource file (*.bri) for these sound files and use the corresponding (*.bar) file in my aplication. In brew resource editor I have choosen ' New Image' option and specified the path of the file.

In the entries list of these sound files, it shows the image type as 'audio/mid' (I think it should be 'image/mid' ).

Bar file is successfully created. But when I include this file in the application and compile it , it gives somany errors saying 'unknown character 0x1, 0x2 etc' in the bar file.

What is the problem ? Pleae help me.

Regards,
sumana

A few things spring to mind...
1) Are you including it in the Object Section?
2) Under attributes of the included file is the "Source" set to "File"?
3) Are you #include "MyResources.bar" or "Myresources.h"? Because it should be the "Myresources.H" file.
Oh and the mime type of audio/midi is correct
- Skavenger.

A few things spring to mind...
1) Are you including it in the Object Section?
2) Under attributes of the included file is the "Source" set to "File"?
3) Are you #include "MyResources.bar" or "Myresources.h"? Because it should be the "Myresources.H" file.
Oh and the mime type of audio/midi is correct
- Skavenger.

Oh no, I included both '*.bar' and '*.h' files.
Thanks for your timely help.
Regards,
sumana

Oh no, I included both '*.bar' and '*.h' files.
Thanks for your timely help.
Regards,
sumana

Hi aboves and supporters
I also want put local QCP files into BAR file, as above point I can put the QCP files into BRI file as IMAGE type, pass compiling and I think can use ISHELL_LoadResSound(...) to load it. ISHELL_LoadResSound(...) will return a ISoundPlayer instance if successful. My question is how can I get a IMedia instance or a QCP file data buffer from the BAR file? For I do not using ISoundPlayer but IMedia to play audio, and I do not want change it. thanks very much.

Hi aboves and supporters
I also want put local QCP files into BAR file, as above point I can put the QCP files into BRI file as IMAGE type, pass compiling and I think can use ISHELL_LoadResSound(...) to load it. ISHELL_LoadResSound(...) will return a ISoundPlayer instance if successful. My question is how can I get a IMedia instance or a QCP file data buffer from the BAR file? For I do not using ISoundPlayer but IMedia to play audio, and I do not want change it. thanks very much.