Console App Question

This is a discussion on Console App Question within the C++ Programming forums, part of the General Programming Boards category; Hello, I want to know if it would be possible to use sound in a console app? Such as using ...

  1. #1
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719

    Console App Question

    Hello, I want to know if it would be possible to use sound in a console app? Such as using like FMOD or maybe OpenAL to produce sounds. If anyone knows if this is possible, tell me.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  2. #2
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    you can make *BEEP* sounds.. with '\a' i believe.. im not sure what it was but you can look it up

  3. #3
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    if you have console mode sound drivers ( not likely with windows boxes or macos ) then yup.
    linux, irix, and the bsds have console mode cd playing software.

    ( yes, listen to your cds while working in bash )

  4. #4
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    Nevermind. I found out how to make little beeps and stuff from a site. Thats all I really wanted anyway. Just use the Beep() function in <windows.h>, pretty cool.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  5. #5
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    "\a" doesnt work for you? or its just not the right beep, lol

  6. #6
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    What is "\a"? I didn't know what you were talking about, so I disregarded it, sorry. I am very sensitive about my beeps, lol.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  7. #7
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    '\a' is suppsed to be an 'audible bell'... doesn't work on my system, but there are alot of things that don't work on my system ATM
    Code:
    #include<iostream>
    
    int main()
    {
            std::cout<<"\a\a\a\a\a\a"<<std::endl;
            return 0;
    }
    escape sequences
    Last edited by major_small; 07-19-2005 at 10:06 PM.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  8. #8
    aoeuhtns
    Join Date
    Jul 2005
    Posts
    581
    Some terminals do not play the sound. Some give the option of brightening an icon whenever the bell character gets printed.

  9. #9
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Quote Originally Posted by Rashakil Fol
    Some terminals do not play the sound. Some give the option of brightening an icon whenever the bell character gets printed.
    actually, now that I think of it... it does kinda work... it shows a little bell in the tab it's in (using Konsole)... I forgot about that
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  10. #10
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    one of the joys of linux major small?
    getting everything tweaked so it works.

    [ lfs user here ]

    edited for spelling
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  11. #11
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    I would rather the bell not be audible... IIRC, I set that a while ago, but forgot I set it... but now that I remember, everytime I see that little bell I remember how happy I am that I can't hear it
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  12. #12
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    I hear ya.

    I unplugged the speaker inside my case.
    and disable the sound system so it doesn't use sound card unless I specifically start the sound server and add the kernel module first.

    visual cues are as effective for notification.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do I pause a console app?
    By Rune Hunter in forum C# Programming
    Replies: 7
    Last Post: 09-30-2004, 06:05 PM
  2. confusion win32 -console app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-11-2003, 10:12 AM
  3. Win2K/XP console question
    By d00b in forum Windows Programming
    Replies: 8
    Last Post: 08-05-2002, 01:43 PM
  4. newbie question about using windows app in Dev C++
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2002, 10:50 PM
  5. Console App Vs Win32
    By Jez_Master in forum C++ Programming
    Replies: 1
    Last Post: 04-07-2002, 05:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21