Length of an audio file (Wave Audio Pack)

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

Postby Baxsan » May 12th, 2007, 8:02 pm

I've done some reading, but I can't figure out how to blend 2 wav files into one. Someone suggested to get samples from both files (on the same position), then get average and write into new file (to the same position).
Could you give me an example? Especially about the average part.
Baxsan
Active Member
Active Member
 
Posts: 9
Joined: May 1st, 2007, 4:02 pm

Postby Johnny_Bit » May 13th, 2007, 7:13 am

average for single sound frame: (sound1 + sound2)/2
Thou shalt write the code, not connect the bricks.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby Baxsan » May 13th, 2007, 11:27 am

Yes, but how can I get the sound frame in the first place? Is it done with TWaveStreamAdapter.read? I've never dealt with pointers and buffers beforce, could you give me a simple example, so I can study it?

Like reading the frame from one file and then writing it into another file.
Baxsan
Active Member
Active Member
 
Posts: 9
Joined: May 1st, 2007, 4:02 pm

Previous

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 3 guests

cron