Thread: Beep and sounds

  1. #1
    C++Pandit
    Join Date
    Jul 2008
    Posts
    49

    Beep and sounds

    i have two questions

    1. what is [code] \a[\code]?
    2.how to use sound files in c++?

    rgds

    saimadhav

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    1. If you output \a to the console on most systems, it will do some sort of simple Beep.

    2. If you asked "Can you use sound files in C++", then the answers is definitely yes (subject to the OS environment having some sort of support for audio files). The question you ask is like asking someone "How do I change the valve springs in an engine?" - if you have never taken a combustion engine apart, or otherwise have good knowledge of how it works, it will take a very long time to explain.

    How much do you know about sound and computers?

    Edit: Also, perhaps you can explain a bit further what you actually want to achieve?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    C++Pandit
    Join Date
    Jul 2008
    Posts
    49
    i am a game programmer (to be) and i want to use sounds

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Saimadhav View Post
    i am a game programmer (to be) and i want to use sounds
    And I repeat my questions, as you didn't answer either:
    How much do you know about sound and computers?

    Perhaps you can explain a bit further what you actually want to achieve?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    C++Pandit
    Join Date
    Jul 2008
    Posts
    49
    i am pretty good at sounds ....... i am a hardware assembler


    how do i use \a?

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Saimadhav View Post
    i am pretty good at sounds ....... i am a hardware assembler


    how do i use \a?
    Code:
    printf("\a");
    for example.

    What's a "hardware assembler", do you mean that you put hardware together, or that you know how to write assembler code?

    Ok, so can you describe how a .WAV file gets played in a PC [I don't mean how you write the code, but generally as a concept]?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Saimadhav View Post
    i am a game programmer (to be) and i want to use sounds
    http://libsdl.org

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beep
    By misterowakka in forum C++ Programming
    Replies: 3
    Last Post: 01-29-2008, 05:19 PM
  2. linux beep function
    By Calef13 in forum C++ Programming
    Replies: 7
    Last Post: 07-14-2007, 01:39 AM
  3. C Beep Function Simple Question
    By Matt3000 in forum C Programming
    Replies: 5
    Last Post: 07-19-2006, 06:43 PM
  4. Making Sounds, Beeps and other pleasing things to the ear.
    By SlyMaelstrom in forum C++ Programming
    Replies: 4
    Last Post: 05-11-2004, 11:17 PM
  5. Playing sounds in Turbo C++
    By Fifasoccer21234 in forum C++ Programming
    Replies: 18
    Last Post: 05-08-2003, 07:27 PM

Tags for this Thread