03-22-2010 05:37 PM
I am prorting a midlet to the Blackberry that records sound using RecordControl and analyses the frequency spectrum of the data. It records audio using:
Player p = Manager.createPlayer("capture://audio?encoding=pcm
On Nokia and Sony-Ericsson phones the audio that I get is of type audio/x-wav including the standard header for audio/x-wav.
On Blackberry the data seems to be audio/basic (at least on the simulator) which is supposed to be the AU sound file format. However it does not contain the standard header of such a file,. Therefore I do not know the detailed format. Can somebody tell me:
-does it contain a header and if yes, where can I find the spec of the header?
-if no header where can I find information about the format, I need to know:
-sampe rate ?
- big endian or little endian ?
- is the PCM linear encoded or µ-law encoded (logarithmic) ?
- bits per sample ?
- number of channels ?
I could not find this information anywhere in the docs, forum or web.
03-22-2010 10:12 PM
based on what I found here: http://www.rfc-editor.org/rfc/rfc2046.txt
I believe the audio/basic is uLaw - 8 bits - 8Khz - Mono without header.
03-23-2010 04:41 PM