Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello,

Does anybody know if it is possible to play PCM audio data? We are a codec company and are looking at what would be involved in porting our codec to BREW. To do this we need a way to pass decoded (uncompressed) 16 bit 44KHz stereo PCM (aka raw) sound samples to the audio subsystem.

The CMX stuff seems to be limited to 4 bit delta coded PCM. The only other "music" format I can see is MP3.

Thanks.

did you get any information on this?

did you get any information on this?

Yes, BREW can play and even stream PCM data.

Yes, BREW can play and even stream PCM data.

can one get PCM audio from the mic also?

can one get PCM audio from the mic also?

Did anyone succeed in accessing linear pcm as opposed to compressed a-law/u-law PCM. Is it supported by IVocoder? If so, how did you do it? I am using BREW 3.1.2. I need linear PCM to get better quality for what I have to do.... Thanks, Rika.

Did anyone succeed in accessing linear pcm as opposed to compressed a-law/u-law PCM. Is it supported by IVocoder? If so, how did you do it? I am using BREW 3.1.2. I need linear PCM to get better quality for what I have to do.... Thanks, Rika.

hi,
if any one success in doing this, please send me the api's used.

hi,
if any one success in doing this, please send me the api's used.

Use IMedia Interface to Record a Voice from Input Device

Use IMedia Interface to Record a Voice from Input Device

hi aknurwar!
can u please give some steps to follow how to record data(QCP/PCM) to buffer(not file), because i am facing problems with recording.
this is my actual problem : http://brewforums.qualcomm.com/showthread.php?t=12304
thanx
amarnath

hi aknurwar!
can u please give some steps to follow how to record data(QCP/PCM) to buffer(not file), because i am facing problems with recording.
this is my actual problem : http://brewforums.qualcomm.com/showthread.php?t=12304
thanx
amarnath

this is working for QCP
i have my code.
after buffer full it go to call back MM_STATUS_SPACE_ERROR.
there u can play.
i have attached my code

this is working for QCP
i have my code.
after buffer full it go to call back MM_STATUS_SPACE_ERROR.
there u can play.
i have attached my code

Thanx gurukumar!
thanx for reply , i run ur code , but unfortunately the problem is repeated. It is calling first MM_STATUS_ABORT and then MM_STATUS_START in the notify callback after that no other notifications, for IMEDIA_Record(). It is not recording any thing, as u said it is not calling MM_STATUS_SPACE_ERROR. :confused:
I used ur as it is without any modifications on 3.1.4 simulator. Can u suggest me why the problem, how it was success with you?
thanx , please reply
amarnath

Thanx gurukumar!
thanx for reply , i run ur code , but unfortunately the problem is repeated. It is calling first MM_STATUS_ABORT and then MM_STATUS_START in the notify callback after that no other notifications, for IMEDIA_Record(). It is not recording any thing, as u said it is not calling MM_STATUS_SPACE_ERROR. :confused:
I used ur as it is without any modifications on 3.1.4 simulator. Can u suggest me why the problem, how it was success with you?
thanx , please reply
amarnath

have u tryed with target(phone)

have u tryed with target(phone)

I tested it on 2.1 device LG6335. wehere we failed to record. I am attaching the log file it generated. 3.x devices are not available for us. we cannt test with 3.x.
please go thru the log, i think you may find the problem !
thanx alot
amarnath

I tested it on 2.1 device LG6335. wehere we failed to record. I am attaching the log file it generated. 3.x devices are not available for us. we cannt test with 3.x.
please go thru the log, i think you may find the problem !
thanx alot
amarnath

hi gurukumar!
have you succeed recoring on emulator/simulator ? in my case the same code(what you posted ) is failing even on device also. On device it is it notifying with MM_STATUS_START but it is not recording anything :confused:
if you have any idea , plz help me
thanx
amarnath

hi gurukumar!
have you succeed recoring on emulator/simulator ? in my case the same code(what you posted ) is failing even on device also. On device it is it notifying with MM_STATUS_START but it is not recording anything :confused:
if you have any idea , plz help me
thanx
amarnath

I Never Tried With Simulator.
It Was Working In Traget.
Now I Dint Tried It .
Now I Am Attaching Another Try This.
This Also Working In Target

I Never Tried With Simulator.
It Was Working In Traget.
Now I Dint Tried It .
Now I Am Attaching Another Try This.
This Also Working In Target

hi gurukumar!
first of all thanx for help,
The code you send is working fine on emulator(2.1.3), But on device it is creating .qcp file with the size 194 bytes only, which is header of the QCP. We have been facing the same problem with our code also.
It is not recording anything. We are tested it on LG6335. Is this the problem of device? BTW which device you tested the code? Have you ever succeed recording to buffer on emulator/simulator ?
once again thanx for spending your valuable time for me. plz let me know if any solution
thanx
amarnath

hi gurukumar!
first of all thanx for help,
The code you send is working fine on emulator(2.1.3), But on device it is creating .qcp file with the size 194 bytes only, which is header of the QCP. We have been facing the same problem with our code also.
It is not recording anything. We are tested it on LG6335. Is this the problem of device? BTW which device you tested the code? Have you ever succeed recording to buffer on emulator/simulator ?
once again thanx for spending your valuable time for me. plz let me know if any solution
thanx
amarnath

hi,
i am using kx5 as target, it is recording and playing smoothly.
please check your LG6335 which version brew it support.
i have not tested in simulator.
in target buff and file both play fine.
one more thing if u are using buffer, i tested that the size of buff should be >2000.
if it is less it wont play, i dont why it is happening.

hi,
i am using kx5 as target, it is recording and playing smoothly.
please check your LG6335 which version brew it support.
i have not tested in simulator.
in target buff and file both play fine.
one more thing if u are using buffer, i tested that the size of buff should be >2000.
if it is less it wont play, i dont why it is happening.

ok, thanx gurukumar,
any way we send this issue to Qualcomm and waiting for reply. if we get reply, I will post it here.
And one more thing is , have you got success in recording PCM format? if yes, on which version of BREW ? actually we need to record PCM data , but we thought very few phones support PCM recording , so record QCP and convert it to PCM. If you have any comments plz let me know.
once again thanx for your help
amarnath

ok, thanx gurukumar,
any way we send this issue to Qualcomm and waiting for reply. if we get reply, I will post it here.
And one more thing is , have you got success in recording PCM format? if yes, on which version of BREW ? actually we need to record PCM data , but we thought very few phones support PCM recording , so record QCP and convert it to PCM. If you have any comments plz let me know.
once again thanx for your help
amarnath

hi,
i never recorded PCM data.
how u will convert QCP to PCM yaar.
i have no idea.

hi,
i never recorded PCM data.
how u will convert QCP to PCM yaar.
i have no idea.