PDA

View Full Version : I'd like to add playback to my audio decoding program..


Austin Forgotten
13th December 2006, 21:20
Hi there,

Well this is my 1st post here, since I'm stuck trying to figure out how to playback decoded dd/dts samples from my app (Tranzcode). I'm using C, and wanted to inplement BASS lib (www.un4seen.com) since I thought it would be easy to do, but after 3 weeks and no sounds coming from my speakers I'm crying out for help. I looked at DirectX and there are almost no examples of using the CreateFromMemory() function. I'm just a hobby programmer, not a pro so I need examples to get me up and running. Almost all examples are reading from file. BASS lib has a BASS StreamCreate() function which works with a STREAMPROC Callback, and I don't know how to get that to work either.

Does anyone know of a free windows audio lib or has some C code available to help me add playback to my program? Also it needs to be able to playback multichannel [i.e. 6-ch (5.1) and 32 bit floating point samples]. If I can't do it I may need to farm out the job to someone more capable :)

Thanks.

Austin Forgotten

Austin Forgotten
15th December 2006, 00:35
Well after trying for 3 weeks, then finally cry out for help, I managed to figure out how to do it a few hours after posting for help here, go figure!

I don't want to bore you with all the details, but if your interested I had started a thread at Ian Luck's BASS Lib forum, here:

http://www.un4seen.com/forum/?topic=6468.0

I also prepared a simple working console program written in c which uses the function call I mentioned above, where I can finally copy my decoded samples into the playback stream.

You can download the source here (as the thread above also has the link)

http://tranzcode.byethost22.com/files/playwav.zip

You will need to download the BASS LIB v2.3 package at:

http://www.un4seen.com/bass.html

..and unzip it. Place my source into the "\c" dir and it should compile just fine.

-af

Pookie
19th December 2006, 04:11
Nice one. Tranzbass v.50 , right ? :D