[Openal] Sound file not loading on project that isn't PlayStatic
Scott Lovejoy
scott.lovejoy at maine.edu
Mon Nov 6 08:08:24 PST 2006
Hi everyone,
I was hoping someone would be able to help a newbie out with this.
The specifics:
I am using VS2005.
I have two projects, Forms_With_Audio and PlayStatic2005 (yes, the OpenAL sample).
I changed the path of the sound file in PlayStatic2005 to "C:\\sounds\\" and tested the program. It found the file correctly, and played it like the sample is supposed to do.
My second program, Forms_With_Audio, is an attempt to integrate Windows Forms and OpenAL. The intention for the test is to have a box with "play" "pause" and "stop" buttons, each doing they should. The first tests didn't go so well. Even though the program ran, hitting play didn't make any sound (even with an event handler, etc.). Since there isn't a console window to let me know if the audio isn't playing, I changed the project type to console, and used the PlayStatic.cpp code from the Sample project in the main() function. The program compiles, links and runs just like PlayStatic, except that trying to load the file (from the same location as the other project), results in a "failed to load" error within the console. On top of this, I get the following warnings when attempting to link the project:
Framework.obj : warning LNK4248: unresolved typeref token (0100001B) for 'ALCdevice_struct'; image may not run
aldlist.obj : warning LNK4248: unresolved typeref token (01000019) for 'ALCdevice_struct'; image may not run
Framework.obj : warning LNK4248: unresolved typeref token (0100001A) for 'ALCcontext_struct'; image may not run
aldlist.obj : warning LNK4248: unresolved typeref token (0100001B) for 'ALCcontext_struct'; image may not run
Any thoughts? Any easier way to do this? Am I going to have to do some code changing so that the program doesn't expect me to press 1 when there isn't a console box to do it in (but instead a Windows Form).
More information about the Openal
mailing list