Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

[PHP3] .wav <-> .aiff From: Richard Lynch (lynch <email protected>)
Date: 01/12/99

Hmmmmm. I was just thinking. I have a bunch of music-related (see .sig)
sites and like to provide tons of audio samples: 30 sec from each track on
the CD in .au, .wav, .aiff, and RealAudio formats. I hate those sites that
expect you to buy a CD from an artist you never heard of after only 10
seconds of a sample, and it sucks when they only provide some lame-ass
format I can't listen to 'cuz I hate the vendor of that particular
technology. [Okay, because I hate that vendor *more* than I hate
RealAudio. :-^] Needless to say, I'm running out of space after two or
three CDs.

It occured to me that somebody once told me the major difference between a
.wav and a .aiff file is the byte-order. So, I'm thinking that PHP could
just read byte by byte and swap bytes around, and that would save me a ton
of space...

Anybody ever done this?

And how different can a .au (.snd) file be? Could I cut my audio storage
into almost 1/3 and *still* cover the builtin audio format of the three
major platforms!? *That* would be awesome!

What would be the fastest way to do the reading/byte-swapping?
[I'm using the CGI currently, if that matters.]

Any reason why it wouldn't work?

Any wild guesses on the % increase in download time?

Would it be a ton easier to install some sort of audio conversion stuff on
the Unix box, exec() it, and spit that out? Duh, I guess it would. And
probably way faster too, right? Any pointers to good, free, easy-to-use,
well-documented, scriptable audio converters under Linux? I guess if it's
Unix it's pretty much got to be scriptable and free, but as for the rest of
that... :-)

Would anybody else find this useful?
  Useful enough to drop me an e-mail and encourage me to do it?
  Useful enough to convince me to wrap it up pretty and document it?
  Useful enough to pay me for it?

Sorry if this message was too rambling. Need sleep.

Jeez, knowing my luck, Linux has audio conversion built-in and this entire
e-mail was pointless, if I could only find the right man page without
having a clue what the converters would be called...

Thanks for any info or comments.

-- "TANSTAAFL" Rich lynch <email protected> webmaster@ and www. all of:
R&B/jazz/blues/rock - jademaze.com music industry org - chatmusic.com
acoustic/funk/world-beat - astrakelly.com sculptures - olivierledoux.com
my own nascent company - l-i-e.com cool coffeehouse - uncommonground.com

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev <email protected>