| View previous topic :: View next topic |
| Author |
Message |
hacchan Member
Joined: 08 Dec 2004 Posts: 5 Location: indonesia
|
Posted: 08/12/04 03:37 Post subject: HOw to read wave data chunk (in PCM format)? |
|
|
Hi, I'm working on an essay now.
It's about reading a wave file (only PCM 8bit 44.100).
I'm using Wave Audio Package v1.60 downloaded from here.
I've been able to record a sound, but now i have a problem in reading the file structure and data (i'm weak in reading pointer ).
I wonder in what type of data a wave file is stored and how to read them(bitmap store the RGB of pixels, but in wave file...?)
I'd be very thankful if somebody could help me.
Thanks a lot.
Regards,
Handoko |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 420 Location: Tehran, Iran
|
|
| Back to top |
|
 |
hacchan Member
Joined: 08 Dec 2004 Posts: 5 Location: indonesia
|
Posted: 09/12/04 15:13 Post subject: still a problem in retrieving 'data chunk' of a wave file |
|
|
Dear Kambiz : Thanks for the site. It's pretty useful.
But I still got problem in retrieving the 'data chunk' cos' it's stored in pointer data.
I've read the Wave.pas in WaveAudioPackage but still can't got the idea.
Maybe you could help me creating a programme that can retrieve the 'data chunk' of a wave file and output as a string? (just output them in memo or stringgrid).
I just need to read the data, no need to rebuild them or playback the wave file.
Anyone could help?
Thanks b4..
Regards, |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 420 Location: Tehran, Iran
|
Posted: 10/12/04 08:54 Post subject: |
|
|
If you spend a little time and study TWave class (wavestorage.pas), you will find out how to interpret the wave data.
In the other hand, if you are weak in using pointers, it's time to get rid of this weakness. For optimized coding, you should get advantage of using pointers. It's not as difficult as you think. |
|
| Back to top |
|
 |
|