how to play wav files according to inputs given?

This is a discussion on how to play wav files according to inputs given? within the C++ Programming forums, part of the General Programming Boards category; Hello hi, My program is like this, PLEASE ENTER DESTINATION NUMBER: ( THEN USER INPUTS A SERIES OF NUMBERS LIKE ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 10:14 AM
  5. Play .wav files?
    By Hydro in forum C++ Programming
    Replies: 6
    Last Post: 02-24-2002, 01:40 PM

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