Thread: Audio player

  1. #1
    Just a Human Anuradh_a's Avatar
    Join Date
    Jan 2008
    Posts
    50

    Audio player

    hi people
    I'm trying to create a Audio player . but I have no idea to how to do it.all I know is that
    there function called MCIWndPlay() and some other function like MCIWndSetVolume(),MCIWndStop()..... .Is it possiable to create a player only with MCI commands ? or any other way??
    thanks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Isn't one way enough?

    Maybe you could do something with DirectSound, or for something completely different, how about beep() ?

    What about 'tunefully' thrashing the hard disk to make the head movements beat out the sound?
    http://www.metacafe.com/watch/240975/f1_engine_song
    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.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Juneda
    Posts
    291
    Also take a look at fmod

    "...how about beep() ?"

    Here's a frequency table(Hz), I find it usefull

    Octave 0 1 2 3 4 5 6 7
    Note
    C 16 33 65 131 262 523 1046 2093
    C# 17 35 69 139 277 554 1109 2217
    D 18 37 73 147 294 587 1175 2349
    D# 19 39 78 155 311 622 1244 2489
    E 21 41 82 165 330 659 1328 2637
    F 22 44 87 175 349 698 1397 2794
    F# 23 46 92 185 370 740 1480 2960
    G 24 49 98 196 392 784 1568 3136
    G# 26 52 104 208 415 831 1661 3322
    A 27 55 110 220 440 880 1760 3520
    A# 29 58 116 233 466 932 1865 3729
    B 31 62 123 245 494 988 1975 3951

    Sorry, it appears a bit unaligned but you can reorder on your notepad.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 11-03-2008, 09:48 PM
  2. My first python project =)
    By Desolation in forum Tech Board
    Replies: 14
    Last Post: 06-26-2007, 10:52 PM
  3. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 04:24 PM
  4. playing audio cassettes on my cd player
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-09-2003, 09:22 AM
  5. is it hard to make a audio player
    By sobbles in forum C++ Programming
    Replies: 5
    Last Post: 10-12-2002, 10:10 AM