At 6:02 PM -0600 1/13/02, J. Scott Saults wrote:
>In  Vol 1 #50 , Sjoerd Op 't Land
>>I agree that better support should be added. In the meanwhile: are these
>>sound sampled at all the same rate? Because that it would be a possibility
>>to just write sound1data&sound2data&sound3data... to file, prepare it and
>>play it.
>
>Seems like a great idea and it's something I hadn't considered.  I really appreciate 
>the suggestion, but, so far, I haven't gotten it to work.
>
>I have been able, using the get and put URL Binfile: to read and then write the SAME 
>binary data from a sound file so that it seems to play OK. However, when I 
>concatenate the binary date from two files, they do not both play. Only the first 
>sound will play. I assume that I need to extract the actual sound data from the file 
>header and from any end of file characters, concatenate that data from several files, 
>then add the header to to combined data and save that as the new sound file.
>
>Could you explain how to parse the sound file to make your suggestion work?  Is there 
>anything else I'd need to do consider? Thanks for the help!

I smacked my forehead when I read this suggestion, because of course it will solve the 
problem. You are right that you need to grab the actual sound data and work with it. 
The actual procedure will vary based on the sound format you are using. Most involve a 
bit of header info and then raw sound data. I once wrote a utility to process AIFF 
sounds, and it wasn't too difficult after I got my head around the documentation for 
the format. If I remember right, the only (slightly) tricky bit was that the size of 
the sound data was part of the header, so I had to calculate that and insert it.

regards,

Geoff
_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution

Reply via email to