FMOD/BASS/OpenAL Question

Just starting out? Need help? Post your questions and find answers here.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

FMOD/BASS/OpenAL Question

Post by chris319 »

Which if any of FMOD, BASS or OpenAL supports 24-bit audio capture (recording)?

Thanks.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

That is a question related to PureBasic? You should better seek info on the corresponding site of the developer.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post 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?
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Post 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!
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

I'm interested as well. 8)

.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

Perhaps PortAudio should be part of PureBasic?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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...
quidquid Latine dictum sit altum videtur
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

Thanks. I will let you know if I have success with this.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

Here is a very useful overview of PortAudio:

http://www.audiomulch.com/~rossb/writin ... mc2001.pdf
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post 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
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post 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.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Post 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 :wink:
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post 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.
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Post by eriansa »

Portaudio is working great under XP :)
Post Reply