Jump to content
  • Advertisement

EDEV

Member
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

100 Neutral

About EDEV

  • Rank
    Member
  1. It's working, JUST AS I HAD HOPED!!! THANKS TO EVERYONE WHO HELPED! You just took a frustrated noob C++ programmer and made him a very happy one. This is a very helpful and friendly site, I will be sure to come here for help and discussion from now on. Thanks again!!! I seriously was thinking about giving up on getting working sound...and almost C++....I feel reinvigorated!
  2. I GOT IT WORKING!!!! OMG THANK YOU ALL SO MUCH!!! I appreciate all your patience and help with a complete C++ noob, you guys helped and responded much faster than I expected! I finally feel like I am understanding libraries. Thanks for everything! That being said...I have another problem...of course. XD The song plays, but the program does not continue running, I want the song to run in the background while the game continues...right now it seems to stop...play the whole song, then move on. Anyone know what I can do about that?
  3. Alright well that's progress, the program started, but no sound...hmmm...
  4. Alright, I tried following this guide: http://sfml-dev.org/....6/start-vc.php To add a library to the project, but when I go there it says its been deprecated and now its in a user sheet.... What the heck does that mean?! [/quote] http://ctp.social.ms...02-998bb6747829 This should be more helpful. I believe you can open the project properties by right-clicking on your project and selecting the properties option from the drop down menu (I don't know how 2010 is organized. I'm trying to install it atm) [/quote] Okay followed that guide and added winmm.lib in the linker... When I compile I get this: 1>c:\users\edgar\documents\visual studio 2010\projects\test\test\test2.cpp(75): warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data 1>c:\users\edgar\documents\visual studio 2010\projects\test\test\test2.cpp(108): error C2065: 'SND_FILENAME' : undeclared identifier 1>c:\users\edgar\documents\visual studio 2010\projects\test\test\test2.cpp(108): error C3861: 'PlaySound': identifier not found 1>c:\users\edgar\documents\visual studio 2010\projects\test\test\test2.cpp(108): error C3861: 'TEXT': identifier not found 1>c:\users\edgar\documents\visual studio 2010\projects\test\test\test2.cpp(1065): warning C4390: ';' : empty controlled statement found; is this the intent? Do I have to type something in the beginnign like #include <winmm>?
  5. is winmm.lib already included with C++, or do I have to download and add it seperately? I know I'm almost there...just a little...more...!!
  6. Alright, I tried following this guide: http://sfml-dev.org/tutorials/1.6/start-vc.php To add a library to the project, but when I go there it says its been deprecated and now its in a user sheet.... What the heck does that mean?!
  7. PlaySound(TEXT("yourfile.wav"), NULL, SND_FILENAME); Question here: Am I supposed to put something where it says text? ANd where it says "yourfile.wav" do I just put the directory path where the file can be found? EDIT: Also can you guys recommend a resouce for adding libraries? Not sure where I add in winmm.lib?
  8. EDIT: Working now, weird. Let me test the game and see if everything is working...then I'll try to play the sound.
  9. Okay I got the project started, created a new .cpp and copied everything over. I hit debug and I get an error: Unable to start program 'c:\users\xxxx\documents\visualstudio2010\projects\dw1.1ported\release\dw1.1ported.exe' system cannot find the specified file ugh...what now?
  10. Ok I installed it and got it running, I copied my code over, but I can't find where I go to run/test the code? EDIT: Is it debug? The option to debug is greyed out so...I'm not sure...maybe theres something I gotta add to my code first?
  11. Wait so Visual C++ has a native call that I can use to play sound? No libraries involved? That's awesome!!! 2nd, whats VS2K10? (In the midst of installing Visual C++ now)
  12. Your right about the IDE being old, its just the book I was using to follow along use this IDE. I'm going to us MS VC++, the code should just port over no problems, and I will see if I can get the libraries working from there.
  13. Windows 7, file is .mp3/.wav, but I can transfer to any other format. My first and biggest problem is Dev++ won't find/utilize any of the libraries, so when I use functions/code from examples, they don't compile they just give me errors.
  14. Hello, I've been using C++ these past few days, and I've been learning a lot and having fun. Right now I'm making small short games to test what I've learned so far. I want to play a song in one of my games...but I cannot figure out FOR THE LIFE OF ME, how to include/tie/associate libraries/headers so that the code will run. Right now I'm using Dev++, I've tried EVERYTHING, I've used devpaks, copied files into the include and lib folders...added libraries manually. Everytime I copy/paste some example code that should play a sound, I get linker errors and other errors out the wazoo. Is there a resource that will show me. 1. How to include files needed to get libraries to work/run on my compiler? 2. A VERY BASIC tutorial on how to get sound working with any library? The less calls/work I have to do the better. I just want something simple...playing a sound in my program. I figured out how to do this in VB in 10 minutes....5 hours in C++ has gotten me nowhere and its extremely discouraging. Any help is VERY appreciated!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!