Thread: anyone know how to upload long sound files into a program?

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    156

    anyone know how to upload long sound files into a program?

    PlaySound(); only plays short sound files. What is the function for long sound files?
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: [email protected]

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  2. #2
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    I can't play songs period, anyone know how to??

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    156
    #include <iostream>
    #include <windows.h>
    #include <mmsystem.h>

    int main(void)
    {
    PlaySound("soundfilehere.wav", NULL, PND_ASYNC); // This plays the file in the backround
    cout << "Yo!!" << endl;
    Sleep(400);
    return 0;
    }
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: [email protected]

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  4. #4
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    So this is death, eh ruf?

    This is also a windows question.

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    156
    same difference
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: [email protected]

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  6. #6
    Registered User
    Join Date
    Jan 2002
    Posts
    363
    No it isn't.
    Thats why there is a board for C++ and a board for windows programming.
    If you own a piece of land and there is an volcano on it and it ruins a
    nearby town, do you have to pay for the property damage?

  7. #7
    Registered User
    Join Date
    Apr 2002
    Posts
    156
    ok................how do you upload a sound file into a C++ program?
    (the windows forum is dead and this is a windows/C++ function).

    You guys want me to post it elsewhere because you don't like me. I've seen people post links to their games on the C++ forum, why won't they post it on the game programming forum??
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: [email protected]

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  8. #8
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    just post your codes
    codes can be used to whatever!

  9. #9
    Registered User
    Join Date
    Apr 2002
    Posts
    156
    forget it man, no one wants to help me
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: [email protected]

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  10. #10
    Seņor Member
    Join Date
    Jan 2002
    Posts
    560
    Because you're a rude, stubborn a*shole

  11. #11
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    he did nothing wrong, just asked if there is way do play sound!

  12. #12
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    pode,

    You are rather underinformed on the subject. He did, in fact, do something wrong, on the GD board.

  13. #13
    Registered User
    Join Date
    Apr 2002
    Posts
    156
    this isn't the GD board and answer my question
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: [email protected]

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  14. #14
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    ok man THIS is what he asked

    anyone know how to upload long sound files into a program?

  15. #15
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    didn't he?

    he didn't ask for a windows code right there!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inserting a swf file in a windows application
    By face_master in forum Windows Programming
    Replies: 12
    Last Post: 05-03-2009, 11:29 AM
  2. Get program to copy itself into program files, then start on startup.
    By guitarist809 in forum Windows Programming
    Replies: 6
    Last Post: 03-03-2008, 09:42 AM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  4. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  5. multiple sound files .. stuck
    By cheekymeeky in forum C++ Programming
    Replies: 2
    Last Post: 04-28-2002, 05:26 PM