Play Buffer with asndlib

Post Reply
christo
Posts: 1
Joined: Sun Oct 03, 2010 7:02 pm

Play Buffer with asndlib

Post by christo » Sun Oct 03, 2010 7:11 pm

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?

adrian6184
Posts: 1
Joined: Tue Oct 05, 2010 3:54 pm

Playing sound buffers with asndlib and aesndlib

Post by adrian6184 » Tue Oct 05, 2010 3:57 pm

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?

wilco2009
Posts: 4
Joined: Fri Jan 21, 2011 11:05 pm

Re: Play Buffer with asndlib

Post by wilco2009 » Thu Mar 31, 2011 11:19 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests