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

Post by chris319 »

I wonder why it doesn't work on my XP installation. Are you doing anything special? My code always hangs up on Pa_Initialize().
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

Crappy soundcard driver ? Don't expect too much if you have a AC97 spu :P
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

KarLKoX wrote:Crappy soundcard driver ?
Could be. I'll try a different sound card and report back.
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

It includes an import library, a dll (you will require the dlls, the .lib contains no real code) and an include file for PortAudio and for libsndfile (simple wave saving/loading). Both are straight compilations with Visual Studio of the packages found on their website.
Which PortAudio packages did you compile? There are many, many programs that come with PortAudio that do many different things. I want to be able to maintain this myself, and have been trying to set up a C environment with MinGW and MSYS with no joy (GCC and C fight you every step of the way).
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: FMOD/BASS/OpenAL Question

Post by Trond »

How come PortAudio always crashes when using Pa_OpenStream()?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: FMOD/BASS/OpenAL Question

Post by Trond »

The dll provided by freak was compiled with the wrong struct member alignment and all functions that deals with structures will fail.

I recompiled portaudio and uploaded it here:
http://www.rocketsoft.gm-school.uni.cc/uploads/dist.zip

freak's files (except portaudio dll and lib) are included to help you get started, I hope it's okay freak.

Also the file contains the reference doc for portaudio and a tutorial from the portaudio wiki.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: FMOD/BASS/OpenAL Question

Post by freak »

> freak's files (except portaudio dll and lib) are included to help you get started, I hope it's okay freak.

Sure, no problem.

I wonder why i did not run in the structure alignment problem. I only used it for a very small project though so maybe i was just lucky.
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: FMOD/BASS/OpenAL Question

Post by Trond »

freak wrote:I wonder why i did not run in the structure alignment problem. I only used it for a very small project though so maybe i was just lucky.
In your example you use OpenStreamDefault(), which does not take a structure, instead of OpenStream(), which takes two structures.
Structures are mostly used for getting information, so if you just use defaults and don't want to know what they are, you probably didn't need the structures. Getting information didn't crash anything, though, only nonsense information was returned (like, latency=981234119234.12348723 :lol: )
Post Reply