Page 1 of 1
Play Buffer with asndlib
Posted: Sun Oct 03, 2010 7:11 pm
by christo
Sorry but i have 2 questions.
How i can play buffer with ansdlib?
and
I must use only ASND_SetVoice or i need another more?
Playing sound buffers with asndlib and aesndlib
Posted: Tue Oct 05, 2010 3:57 pm
by adrian6184
How i can play buffer with ansdlib? I must use only ASND_SetVoice or i need another more?
Is better asndlib o aesndlib for this stuff?
Re: Play Buffer with asndlib
Posted: Thu Mar 31, 2011 11:19 pm
by wilco2009
First you have to obtain a 8 bits signed RAW PCM sample. You can use for example audacity.
After that you have to link it to your program. You can use raw2c.exe utility to do that.
copy and include include the files generated.
use ASND_Init() to initialize th library and ASND_Pause(0) to let play.
Finally use ASND_setvoice to play the buffer.