Discussion:
[Audiere-users] Audiere crash on win32 (when OpenDevice is called?)
Mathew Carr
2005-09-03 20:09:02 UTC
Permalink
Hi there!
I'm trying to use Audiere on win32 (Windows XP) using mingw/gcc
'2.95.3-6 (mingw special)', but every time I run the compiled exe, I
get a windows error telling me it has to shut down. I was following
the tutorial txt, and I then tried copying the relevant parts into the
middle of my half-finished game, but then I got the crash.
To test, I placed the audiere code by itself in this small program; it
seems that the 'AudioDevicePtr device(OpenDevice());' is causing the
crash. Do I need to initialise Audiere before I try opening the
device?.. or is it about high time I updated my MinGW? I've pasted the
code that causes the crash.
Cheers. :)

----

#include <audiere.h>
using namespace audiere;

int main(int argc, char *argv[]) {
AudioDevicePtr device(OpenDevice());
if (!device) {
return 0; // failure
}
}

----
Chad Austin
2005-09-03 20:26:43 UTC
Permalink
My guess is that you need to upgrade mingw. ;) gcc 2.95 is really old. Or use
cygwin with the gcc -mno-cygwin option (just like mingw, but easier to install
and deal with, IMO).
Post by Mathew Carr
Hi there!
I'm trying to use Audiere on win32 (Windows XP) using mingw/gcc
'2.95.3-6 (mingw special)', but every time I run the compiled exe, I
get a windows error telling me it has to shut down. I was following
the tutorial txt, and I then tried copying the relevant parts into the
middle of my half-finished game, but then I got the crash.
To test, I placed the audiere code by itself in this small program; it
seems that the 'AudioDevicePtr device(OpenDevice());' is causing the
crash. Do I need to initialise Audiere before I try opening the
device?.. or is it about high time I updated my MinGW? I've pasted the
code that causes the crash.
Cheers. :)
----
#include <audiere.h>
using namespace audiere;
int main(int argc, char *argv[]) {
AudioDevicePtr device(OpenDevice());
if (!device) {
return 0; // failure
}
}
----
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Audiere-users mailing list
https://lists.sourceforge.net/lists/listinfo/audiere-users
Loading...