Le samedi, 9 nov 2002, � 20:10 Europe/Paris, Robert Purcell a �crit :
The Sony documentation does not talk about PCM **Wave** resources !I'm having a hard time getting the Sony API 'SndPlayPcmResource' to play PCM Wave resources. (...) Has anyone had any luck playing wave resources on the Sony Clie? I'd appreciate any help with this and some sample code would be most appreciated!
You can't use this function to play a sample using the WAVE format : if you look carefully at the beginning of the Sony Sound Manager documentation, the format of the data is explained, and they talk about PCM(ADPCM) format.
In fact, this function is expecting sound that is generated using the Sony Sound Converter tool, that came in the CD with your Clie.
Drag & drop a .WAV file on it and it will generate a .PDB
This PDB contain one resource : the sample using the format expected by the Sony Sound Manager.
Just extract this resource and include it into your own PRC, and then you will be able to play a sample on your Clie !
--
Daniel Morais
http://www.kickoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
