well, you seem willing to parse audio files under a php script, isn't it?
let's take a look: wav files are kind of raw files re. sample audio data. that meaning they're not encoded. you read a frame (8bit or 16bit sample) and go on with it, provided you read the header portion of the file giving you the fundamental characteristics of the digital audio data that follows...
now. ogg, mp3 and flac are different beasts. in the sense that digital audio data are encoded and those files have some special structure, way more complex than a raw stream you find on wav files (after the header, that is).
so. you probably want to know, that to read ogg files (or any other encoded format), you should bring a decoder implementation into the scene: for example, qtractor does use libvorbis et al. for ogg audio files. now there's a question whether is there any libvorbis aware php extension out there. i'll bet there are, some :)
i'll leave you there. homework exercise ;)
cheers
Copyright (C) 2006-2024 rncbc aka Rui Nuno Capela. All rights reserved.
Powered by Drupal
Recent comments
1 hour 24 min ago
1 hour 27 min ago
2 hours 20 min ago
5 hours 7 min ago
5 hours 18 min ago
5 hours 24 min ago
7 hours 20 min ago
8 hours 51 min ago
7 hours 26 min ago
11 hours 4 min ago