Yet another useless port; it's libFLAC 1.3.0 and simple FLAC decoder.
Использование / usage:
Code: Select all
decode file.flac file.wav
1) Декодер (не библиотека) понимает только стерео 16 бит / Decoder supports only stereo 16 bit (but not library)
2) Не работает с файлами больше 4 Гб / Won't work on >4Gb files
Для хакеров / for hackers:
Я прошёлся по исходникам и немножко их похачил, чтобы они собирались в пропатченной транковой версии menuetlibc из единой директории. Сборка с другими libc не должна вызвать особых проблем, нужно будет просто исключить stub.c. Суть патча menuetlibc заключается в добавлении stdarg.h в список include'ов в исходники функций printf и fprintf.
I hacked libFLAC sources a bit to make them flat, and compiled them with patched menuetlibc from trunk. I think there will be easy to compile it with any other libc, just remove stub.c file. And about menuetlibc patch, I just added includes for stdarg.h in printf.c and fprintf.c