sad

simple audio daemon
git clone git://git.2f30.org/sad.git
Log | Files | Refs | LICENSE

commit 5cbdbd43c723883d98b246b5e6cf12da05776564
parent 975c54620afb032cc9564f806757e1a0d2077c21
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon Dec 29 00:26:50 +0100

flac: add basic flac support using libsndfile

Diffstat:
decoder.c | 7++++---
wav.c | 1+
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/decoder.c b/decoder.c @@ -12,9 +12,10 @@ static struct { char *ext; Decoder *decoder; } decodermap[] = { - { ".wav", &wavdecoder }, - { ".mp3", &mp3decoder }, - { ".ogg", &vorbisdecoder }, + { ".wav", &wavdecoder }, + { ".flac", &wavdecoder }, + { ".mp3", &mp3decoder }, + { ".ogg", &vorbisdecoder }, }; int diff --git a/wav.c b/wav.c @@ -37,6 +37,7 @@ wavopen(const char *name) case SF_FORMAT_PCM_S8: bits = 8; break; + case SF_FORMAT_FLAC: case SF_FORMAT_PCM_16: bits = 16; break;