CrewXp Posted April 22, 2007 Share Posted April 22, 2007 Hey, I'm working on a project for one of my classes, and we get extra credit for adding sound. I've tried tons of examples on the internet, but most of them were complicated and hard to understand. Does anyone know how I can add ANY type of sound to my project before I turn it in, in 4 hours? Wav, Midi, Mp3, WMA. Anything. Something that will easily fit into a basic script. //Some Functions //More Functions int main() } //Code return 0; } Link to comment Share on other sites More sharing options...
piccaso Posted April 22, 2007 Share Posted April 22, 2007 AnythingBeep( 750, 300 ); CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
CrewXp Posted April 22, 2007 Author Share Posted April 22, 2007 lol wow.. I knew that word would make someone do that. That's why I added "Wav, Midi, Mp3, WMA. Anything." Yeah.. beep's are my last resort. Any ideas? Link to comment Share on other sites More sharing options...
piccaso Posted April 22, 2007 Share Posted April 22, 2007 play with PlaySoundtutorial CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
CrewXp Posted April 23, 2007 Author Share Posted April 23, 2007 thats like the first thing I've tried. The simple approach. But I get this error after compiling: 1>c:\users\crewxp\documents\visual studio 2005\projects\spiralproject\spiralproject\main.cpp(624) : error C2664: 'PlaySoundW' : cannot convert parameter 1 from 'const char [21]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Link to comment Share on other sites More sharing options...
CrewXp Posted April 23, 2007 Author Share Posted April 23, 2007 nvm! figured it out. I had to change from unicode to multi-bytee Link to comment Share on other sites More sharing options...
piccaso Posted April 23, 2007 Share Posted April 23, 2007 Looks like you compiled unicode. if you want to use unicode you have to use a unicode string... CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
CrewXp Posted April 23, 2007 Author Share Posted April 23, 2007 (edited) now all i need is some relaxing or fun game-background wav files Edited April 23, 2007 by CrewXp Link to comment Share on other sites More sharing options...
Zedna Posted April 25, 2007 Share Posted April 25, 2007 Why so complicated?Look at Autoit built-in function SoundPlay Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now