alutLoadWAVFile question.

47ac448f6d4fedf29eea76b6e82d47df
0
iceboylsg 101 Oct 26, 2009 at 15:48

When i use this function,

For example:

alutLoadWAVFile(“sound.wav”, &format, &data, &size, &freq, &loop);

Should i define where is the sound.wav file? if not, where should i put the sound.wav file?

2 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Oct 26, 2009 at 16:22

You can specify a full path if you like. If you don’t, it will be loaded from the current directory. The current directory is set when the application is started - if you are launching it from Visual Studio, this is usually the project folder (where the .vcproj is).

BTW, in general when you have questions about specific functions like this, you should look at the documentation.

47ac448f6d4fedf29eea76b6e82d47df
0
iceboylsg 101 Oct 26, 2009 at 16:37

oh Thank you!… but i still have a prob..it is no sound and no error. i using the method open device, open context, and set active context method. hmm..any idea?