When i use this function,
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?
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.
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?