read Ogg/Mp3 file
Benjamin Thaut
code at benjamin-thaut.de
Sun Jul 8 08:04:37 PDT 2012
Am 08.07.2012 16:59, schrieb Namespace:
>> Well .ogg and .mp3 are quite similar in compression technology. But
>> you will need a mp3 library to read them. I don't know a opensource one.
>
> I cannot open and read them like .wav files, simply with FILE* and
> fread? o.O
> I thougth i only need the structure of mp3 files and then i can read them.
Well yes, if you write your own mp3 decoder then you can do that. But
the sound information within mp3s is compressed using inverse fourier
transform and some other fancy math stuff. It will take quite some time
to write all the code neccessary for reading the whole format.
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d-learn
mailing list