Page 1 of 2
FMOD/BASS/OpenAL Question
Posted: Tue Oct 16, 2007 4:45 pm
by chris319
Which if any of FMOD, BASS or OpenAL supports 24-bit audio capture (recording)?
Thanks.
Posted: Tue Oct 16, 2007 4:47 pm
by Fluid Byte
That is a question related to PureBasic? You should better seek info on the corresponding site of the developer.
Posted: Tue Oct 16, 2007 5:27 pm
by freak
I did a small project using the PortAudio library recently (
http://www.portaudio.com/ )
It has a quite simple API and allows a number of formats for recording/playback.
I can provide a compiled .lib and includefile for Windows if you want.
Posted: Tue Oct 16, 2007 6:24 pm
by chris319
Sure, I'll take a look at your PortAudio stuff. Is it based around PureBasic, C or some other? I tried dealing with PortAudio in C and could not get it to compile, and the user community was of no help whatsoever.
How do we get this from you to me?
Posted: Tue Oct 16, 2007 6:47 pm
by eriansa
freak wrote:I did a small project using the PortAudio library recently (
http://www.portaudio.com/ )
It has a quite simple API and allows a number of formats for recording/playback.
I can provide a compiled .lib and includefile for Windows if you want.
I would like to see that!
Posted: Tue Oct 16, 2007 9:03 pm
by byo
I'm interested as well.
.
Posted: Tue Oct 16, 2007 10:04 pm
by chris319
Perhaps PortAudio should be part of PureBasic?
Posted: Tue Oct 16, 2007 10:17 pm
by freak
We cannot make any 3rd party lib a part of PB... we'd be on it forever...
Its really not too hard to import C libraries with the Import feature from PB4.
Here is my stuff:
http://freak.purearea.net/stuff/PortAudioPB.zip
It includes an import library, a dll (you will require the dlls, the .lib contains no real code)
and an includefile for PortAudio and for libsndfile (simple wave saving/loading)
Both are straight compilations with Visual Studio of the packages found on their website.
Both are projects aimed at crossplatformness, so it should be quite simple to also get a compilation for Linux.
The example simply does some recording in 16bit stereo into a big buffer
(stops when the buffer is full after ~1 minute).
Then it saves the stuff to disk as a wave file.
For a real program, one big buffer is probably a bad idea. What i do is use a list
of memory buffers which get cycled, so while the main program is saving
one buffer, the recording callback can fill another one.
Just read around a bit on the PortAudio wiki (tutorials etc). The documentation
is not the very best. But then, there are not that many commands, so
you should get the idea pretty quickly.
I hope this is helpful...
Posted: Tue Oct 16, 2007 11:25 pm
by chris319
Thanks. I will let you know if I have success with this.
Posted: Wed Oct 17, 2007 12:11 am
by chris319
Posted: Wed Oct 17, 2007 7:19 am
by chris319
freak -
This PortAudio implementation is pretty cool! Thanks a million times over for sharing it! I am just now starting to play around with it. So far it works!
My goal is to incorporate it into this little program here:
http://www.purebasic.fr/english/viewtopic.php?t=7009
Posted: Wed Oct 17, 2007 12:08 pm
by DoubleDutch
Generated sound is great for re-creating classic video games. Maybe (on the official PureBasic website) there should be downloads such as this, but with the clear notice that they are not supported.
Posted: Wed Oct 17, 2007 1:33 pm
by eriansa
freak wrote:I hope this is helpful...
Thanks a lot!
Asio implementation is so easy with this lib...
If only I knew that a year ago

Posted: Fri Nov 09, 2007 3:26 pm
by chris319
Could someone who is working with PortAudio on PB 4.10 please check to see if the function Pa_Initialize() still works under Windows XP? It works for me under Windows Vista but crashes when the same source code is run on XP. I'm wondering if something about the Vista compatibility in 4.10 has broken this code under XP.
Thank you.
Posted: Sat Nov 10, 2007 1:56 pm
by eriansa
Portaudio is working great under XP
