Jump to content


alutLoadWAVFile question.


2 replies to this topic

#1 iceboylsg

    New Member

  • Members
  • PipPip
  • 21 posts

Posted 26 October 2009 - 03:48 PM

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 Reedbeta

    DevMaster Staff

  • Administrators
  • 5311 posts
  • LocationSanta Clara, CA

Posted 26 October 2009 - 04:22 PM

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.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 iceboylsg

    New Member

  • Members
  • PipPip
  • 21 posts

Posted 26 October 2009 - 04:37 PM

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?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users