What is the correct way to use the sound manager to play a file from within
FlightGear?  I'm using the following:

FGSimpleSound simple("temp01.wav");
globals->get_soundmgr()->add(&simple, refname);
cout << "refname = " << refname << endl;
globals->get_soundmgr()->play_looped(refname);
cout << "Called play looped " << endl;


It's definately finding the file temp01.wav in fgfsbase, but then its
outputting

refname = 

ie. no visible name, is this right?

and then its getting to output "Called play looped",

but at some point stops with 

FATAL: slEnvelope: FATAL ERROR - Application deleted an envelope while it
was playing.

before it plays.

Any ideas what I'm doing wrong here?

Cheers - Dave


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to