Playing an Audio Wav File

This is a discussion on Playing an Audio Wav File within the C++ Programming forums, part of the General Programming Boards category; Please can someone tell me the best way to get a continuous loop *.Wav file to play. I have written ...

  1. #1
    Registered User Robert_Ingleby's Avatar
    Join Date
    Oct 2001
    Posts
    57

    Playing an Audio Wav File

    Please can someone tell me the best way to get a continuous loop *.Wav file to play.

    I have written a program in C using Borland Turbo C++ in DOS.

    Thanks, Rob.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,500
    > the best way to get a continuous loop *.Wav file to play.
    Does this mean that there is some magic code inside the .wav file which means go back to the beginning (or some earlier point)?

    If you just want to repeat at EOF, then try something like
    Code:
    if ( feof(fp) ) {
        clearerr( fp );
        fseek( fp, 0, SEEK_SET );
    }

  3. #3
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    is there any tutorials on playing a .wav on the first place? I am using console.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  3. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  4. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  5. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM

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