Thread: how to play wav files according to inputs given?

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    5

    how to play wav files according to inputs given?

    Hello hi,
    My program is like this,
    PLEASE ENTER DESTINATION NUMBER:
    ( THEN USER INPUTS A SERIES OF NUMBERS LIKE 238947864)

    How do i play wav files of dtmf tones corresponding to the numbers given?
    i have used if else, but it doesnt work. Only if one number is entered it plays the corresponding dtmf wav file and exits.

    But if i were to enter a series of number like 2873649, the program exits without playing at all.

    thanks.
    Trinetra

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well you could post your code, then we could actually tell you all (or at least some) of the things you did wrong.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. not able to play MP3 files in SUSE 10.0
    By kris.c in forum Tech Board
    Replies: 0
    Last Post: 09-14-2006, 04:36 AM
  2. how to play play and stop wav files
    By cnu_sree in forum Linux Programming
    Replies: 4
    Last Post: 08-14-2006, 11:11 PM
  3. JetAudio won't play .dat files
    By LogicError in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 05-25-2005, 08:35 AM
  4. How to play Mpeg/AVI files
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 04-03-2002, 11:14 AM
  5. Play .wav files?
    By Hydro in forum C++ Programming
    Replies: 6
    Last Post: 02-24-2002, 02:40 PM