Thread: question again.....

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    101

    question again.....

    I want to write a program which can record sound and play it back. Can anyone give me some examples, or webs about it??
    Thx!!

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    What operating system are you using?
    zen

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    101
    Originally posted by zen
    What operating system are you using?
    Windows

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    101
    Is there any differences doing this program among different OS?

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >> Is there any differences doing this program among different OS?

    Yeah..... I think there's something in the DirextX SDK that will help you..... DirectSound.....I dont know much about DX yet so I cant be more specific at this moment......I have the SDK, but the book for me to learn is on order


    There's a sample witht the DXSDK that allows you to record from a listning device to a .wav file......

  6. #6
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Is there any differences doing this program among different OS?
    Yes, this is completely o/s dependent. Playing a wav file is relatively simple using the Windows multi-media library (include mmsystem.h and link to winmm.lib), you can call -

    PlaySound(yourWavFilename,0,0);

    However, recording isn't as simple as you need to fill out a WAVEFORMATEX structure along with a header structure and call wavInOpen(). You'll probably need to find a tutorial or book to explain the details.
    zen

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    101
    If u don't mind, can u help me to find some webs about it?
    Of coz I'll find as well, but if someone helps me also, it would be better! thx!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM