Home | Forums | What's new | Resources | |
request : working sbl pcm player function |
vbt - Oct 13, 2006 |
vbt | Oct 13, 2006 | |||
if somebody can help, I'd like a simple and working sample to play a waveform file or buffer |
vbt | Nov 7, 2006 | |||
Request cancelled, I did it myself |
vbt | Nov 18, 2006 | ||||||||
In fact the sound of the sms is converted to wave so I didn't develop my own function to play sound and the function used to read wave in SBL is pcm_AudioMix. I haven't developed a sound player sample but I can give what I did for sound playing from memory :
Code:
|
RockinB | Nov 18, 2006 | |||
That's cool, thanks a lot, vbt! Some portions of SBL code remind me of the AIF playback stuff. |
vbt | Nov 18, 2006 | |||||
Sure About your idea to make a MOD/MP3,etc player, my code could help but ADPCM libs are more interesting. Instead of calling pcm_AudioMix it uses pcm_AudioAdpcmSct. pcm_AudioAdpcmSct calls ADP_DecStereo/ADP_DecMono to play files. Unfortunatly the sources are not given with the SBL. I have to check DUK sound play maybe there are specific sound functions. So I'd say the good way would be to define PCM_ID and extend the PCM lib to play new format(easy to say Here are PCM_IDs of the SBL : PCM_ID_AIFF 'AIFF' PCM_ID_AIFC 'AIFC' PCM_ID_FORMAT_VERSION 'FVER' PCM_ID_COMMON 'COMM' PCM_ID_FORM 'FORM' PCM_ID_SOUND_DATA 'SSND' PCM_ID_ADPCM 'APCM' PCM_ID_MARKER 'MARK' PCM_ID_INS_TRUMENT 'INST' PCM_ID_MIDI_DATA 'MIDI' PCM_ID_AUDIO_RECORDING 'AESD' PCM_ID_APPLICATION_SPECIFIC 'APPL' PCM_ID_COMMENT 'COMT' PCM_ID_NAME 'NAME' PCM_ID_AUTHOR 'AUTH' PCM_ID_COPYRIGHT '(c) ' PCM_ID_ANNOTATION 'ANNO' |