Simultaneous Midi/QCP Playback Help ! | developer.brewmp.com Simultaneous Midi/QCP Playback Help ! | developer.brewmp.com

Developer

Simultaneous Midi/QCP Playback Help !

Forums:

HI,

I'm trying to play a Midi file as a Background music and also some sound effects of QCP format.

Problem:
When a Midi is playing, the moment I start playing a QCP file the midi stops, and vice versa.
How will I avoid it, as it looks like the target system can have Simultaneous playback using both Midi and QCP.

System:
The app is targeted for LGE VX6000, using Brew 2.0 and currently testing on Emulator.

discription :
I'm using IMedia to do this, though I have created different IMedia Instances for each, namely ImediaSound, ImediaMusic.
And Midi files I pass it to ImediaMusic and QCP files I pass it to ImeidaSound.
When I play either of the Interface , I get a state of 3 (I think it means media in use) and or 2 when it completes the play.

How will i make this happen ?

I am not sure but you can try to use CMX format to play combined MIDI and CMX. You can definitely combine MIDI and QCP in single CMX file.
I am not sure though if you can play two CMX files simultenaously. You have to try.
Also there is a problem with pure QCP files on VX6000. IMediaQCP plays QCP files only via earpiece, which is quite useless. The only way to play QCP via speaker is via wrapping it into CMX and playing it via IMediaPMD interface.
Zim

I am not sure but you can try to use CMX format to play combined MIDI and CMX. You can definitely combine MIDI and QCP in single CMX file.
I am not sure though if you can play two CMX files simultenaously. You have to try.
Also there is a problem with pure QCP files on VX6000. IMediaQCP plays QCP files only via earpiece, which is quite useless. The only way to play QCP via speaker is via wrapping it into CMX and playing it via IMediaPMD interface.
Zim

On LG handsets, QCP sounds can be made louder by increasing earpiece (NOT ringer!) volume.

On LG handsets, QCP sounds can be made louder by increasing earpiece (NOT ringer!) volume.

hi goldendevil
i want to know is there any specific API to increase the earpiece (or ringer) speaker individually.
or we have to first select the the speaker using IMEDIA_SetAudioDevice() API then increase the volume using IMEDIA_SetVolume() API.
or any other solutions...
thanx

hi goldendevil
i want to know is there any specific API to increase the earpiece (or ringer) speaker individually.
or we have to first select the the speaker using IMEDIA_SetAudioDevice() API then increase the volume using IMEDIA_SetVolume() API.
or any other solutions...
thanx

Point taken of not using OCP for VX6000, i will find ways to convert it to CMX.
But, I don't want to combine a midi and a QCP into one and play, what i want to do is, I want the midi to keep on playing at the background and when every i have some event then play a sound effect at the forground.
for example, in a game the Midi plays as the background music, and there is a OCP or CMX file which is supposed to play a colliding sound effect when two objects collide.
What happens is, the MIdi keeps on playing and when a collision happens and when i play a Effect file. the Midi stops. and it is not supposed to stop, it is supposed to play at the background and while it does, the effect should play in the background - using different channels (Simultaneous playback). How will i make this happen. I'm using two different Instances of IMedia to play Midi and Effects respectively.
Hope u understood what i am driving into :)

Point taken of not using OCP for VX6000, i will find ways to convert it to CMX.
But, I don't want to combine a midi and a QCP into one and play, what i want to do is, I want the midi to keep on playing at the background and when every i have some event then play a sound effect at the forground.
for example, in a game the Midi plays as the background music, and there is a OCP or CMX file which is supposed to play a colliding sound effect when two objects collide.
What happens is, the MIdi keeps on playing and when a collision happens and when i play a Effect file. the Midi stops. and it is not supposed to stop, it is supposed to play at the background and while it does, the effect should play in the background - using different channels (Simultaneous playback). How will i make this happen. I'm using two different Instances of IMedia to play Midi and Effects respectively.
Hope u understood what i am driving into :)

using IMEDIA_SetAudioPath one can choose earphone, external speaker or both... and there is no need to convert into PMD using CMX studio....Also using CMX studio there is no control over file size you get when wav is converted into QCP or PMD....
so it is possible to play qcp via both earphone/speaker/both....
but my experience is, volume using qcp is very low as compared to MIDI playback.....
sdg

using IMEDIA_SetAudioPath one can choose earphone, external speaker or both... and there is no need to convert into PMD using CMX studio....Also using CMX studio there is no control over file size you get when wav is converted into QCP or PMD....
so it is possible to play qcp via both earphone/speaker/both....
but my experience is, volume using qcp is very low as compared to MIDI playback.....
sdg

Hi,
I agree with "Mr. sdg" that
"using IMEDIA_SetAudioPath one can choose earphone, external speaker or both..."
but i totally diagree that "there is no need to convert into PMD using CMX studio....Also using CMX studio there is no control over file size you get when wav is converted into QCP or PMD...."
as with CMX studio we can control the size by changing the sampling rate from 16000Hz to 8000Hz from the workspace option from the file menu.
and by converting the QCP file to PMD u donot increase the file size...
i think using CMX Studio is advatagious...

Hi,
I agree with "Mr. sdg" that
"using IMEDIA_SetAudioPath one can choose earphone, external speaker or both..."
but i totally diagree that "there is no need to convert into PMD using CMX studio....Also using CMX studio there is no control over file size you get when wav is converted into QCP or PMD...."
as with CMX studio we can control the size by changing the sampling rate from 16000Hz to 8000Hz from the workspace option from the file menu.
and by converting the QCP file to PMD u donot increase the file size...
i think using CMX Studio is advatagious...

* bump * :)

* bump * :)

According to my experience IMEDIA_SetAudioPath doesn't work correctly with IMediaQCP interface on VX6000...
SDG, you said "volume using qcp is very low as compared to MIDI playback"... It's low because it's *always* played via earpiece, despite using IMEDIA_SetAudioPath.
Zim

According to my experience IMEDIA_SetAudioPath doesn't work correctly with IMediaQCP interface on VX6000...
SDG, you said "volume using qcp is very low as compared to MIDI playback"... It's low because it's *always* played via earpiece, despite using IMEDIA_SetAudioPath.
Zim

hi ziemowit,
u r correct that QCP files can't be played through the ringer speaker....
but what about the PMD files are they also have problem with the ringer speaker...

hi ziemowit,
u r correct that QCP files can't be played through the ringer speaker....
but what about the PMD files are they also have problem with the ringer speaker...

PMD files are played by default via ringer speaker. And this is the only way as far as I know to play QCELP via speaker.
Zim

PMD files are played by default via ringer speaker. And this is the only way as far as I know to play QCELP via speaker.
Zim

heheh ! the question of the post is different and the topic discussed is different :)
Btw, I solved the problem! but have some other problem hapopening around. Trying to get the sound resource file's name stored in the .BAR and read from it and loat it to the IMEDIA player ! but have some problem, let me try to find some solutions, or else i will put it up here :)

heheh ! the question of the post is different and the topic discussed is different :)
Btw, I solved the problem! but have some other problem hapopening around. Trying to get the sound resource file's name stored in the .BAR and read from it and loat it to the IMEDIA player ! but have some problem, let me try to find some solutions, or else i will put it up here :)

BTW :
I'm trying to find out where to get CMX Studio in the site. but never got it through, but i did get a lite version of it, is it the only one or is there the pro version , if it is there can anyone point it to me !

BTW :
I'm trying to find out where to get CMX Studio in the site. but never got it through, but i did get a lite version of it, is it the only one or is there the pro version , if it is there can anyone point it to me !

Great! So are you using CMX?
Zim

Great! So are you using CMX?
Zim

I'm thinking off, wanted to see how it can help me and what i should do with it. any details on where i can find more Info on CMX?

I'm thinking off, wanted to see how it can help me and what i should do with it. any details on where i can find more Info on CMX?

Well, all public information about CMX is here:
http://www.cdmatech.com/solutions/products/cmx.jsp
and you can register here to get the software and more information:
http://www.cdmatech.com/about_us/contact_cmx.jsp
It takes a few days to register though....
What version of CMX studio do you have at the moment?
Zim

Well, all public information about CMX is here:
http://www.cdmatech.com/solutions/products/cmx.jsp
and you can register here to get the software and more information:
http://www.cdmatech.com/about_us/contact_cmx.jsp
It takes a few days to register though....
What version of CMX studio do you have at the moment?
Zim

CMX Studio v2.8.6, but its a lite version.

CMX Studio v2.8.6, but its a lite version.

hi
i have the CMX Studio with me. is it help to play MIDI and QCP side by side i have to check it...

hi
i have the CMX Studio with me. is it help to play MIDI and QCP side by side i have to check it...

I have a version 2.9.2 and it's from Qualcomm (the link I have mentioned). I believe it's light version but it doesn't say so. Anyway I never needed to do anything more than this version offers....

I have a version 2.9.2 and it's from Qualcomm (the link I have mentioned). I believe it's light version but it doesn't say so. Anyway I never needed to do anything more than this version offers....

I have a version 4.0 and it's from Qualcomm as mr. ziemowit said I also never needed to do anything more than this version offers....

I have a version 4.0 and it's from Qualcomm as mr. ziemowit said I also never needed to do anything more than this version offers....