-
April 5th, 2010, 12:13 AM
#1
how to read audio in vc++
i am working on a project where i need to read wave file in vc++
i am new to vc++ and know nothing about it
Basically there are four steps in my project
1. reading a wave file
2.playing a wave file
3.converting the wave file in 1-d array storing the array
4.again playing back that array
i have tried PlaySound in my project but i am not able to hear any sound at all
even though there are no errors while compilation as well as during execution
please some body
-
April 5th, 2010, 01:56 AM
#2
Re: how to read audio in vc++
Last edited by Igor Vartanov; April 5th, 2010 at 02:11 AM.
Best regards,
Igor
-
April 7th, 2010, 08:47 AM
#3
Re: how to read audio in vc++
i have read the file in binary mode by using fopen
then i have converted the audio ih to 1-d array
i again need to play the array back
please help me
-
April 7th, 2010, 09:06 AM
#4
Re: how to read audio in vc++
This is not a trivial task. You must allocate and manage multiple buffers (for double or triple buffering) and handle multimedia messages either in a separate thread, or as part of the a windows message pump. These message are sent every time the multimedia subsystem requires that the buffers be replenished.
In the past, I've used this class:
http://www.codeproject.com/KB/audio-...recording.aspx
as a base for designing my own specialized class for audio FFT analysis.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|