DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HOw to read wave data chunk (in PCM format)?

 
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
hacchan
Member


Joined: 08 Dec 2004
Posts: 5
Location: indonesia

PostPosted: 08/12/04 03:37    Post subject: HOw to read wave data chunk (in PCM format)? Reply with quote

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 Razz ).
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
View user's profile Send e-mail
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 420
Location: Tehran, Iran

PostPosted: 09/12/04 11:36    Post subject: Reply with quote

In the following link you can find the wave audio format specifications:
http://www.tsp.ece.mcgill.ca/MMSP/Documents/AudioFormats/WAVE/WAVE.html
Back to top
View user's profile Send e-mail Visit poster's website
hacchan
Member


Joined: 08 Dec 2004
Posts: 5
Location: indonesia

PostPosted: 09/12/04 15:13    Post subject: still a problem in retrieving 'data chunk' of a wave file Reply with quote

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
View user's profile Send e-mail
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 420
Location: Tehran, Iran

PostPosted: 10/12/04 08:54    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group