开发者

Sound Recorder in j2me

开发者 https://www.devze.com 2023-02-12 02:56 出处:网络
I am developing a midlet application for recording in .wav format. I use Nokia SDK 6th edition. I tried with Player using following code.

I am developing a midlet application for recording in .wav format. I use Nokia SDK 6th edition. I tried with Player using following code.

p = Manager.createPlayer("capture://audio?enc=audio/wav");

Its recorded successfully and save test.开发者_如何学Pythonamr in memory card..But we see details in mobile it shows the .amr format.


Probably it does not recognize that ?enc=audio/wav. According to the MMAPI specification, wav is audio/x-wav. The whole sencente would be like

Manager.createPlayer("capture://audio?encoding=audio/x-wav");

Does that work?

0

精彩评论

暂无评论...
验证码 换一张
取 消