Mercurial > otakunoraifu
diff music2/koedec_ogg.cc @ 2:422f3cb3614b
Enabled voice playing with "%04d/%04d%05d.ogg" format. Don't use a cache for this
| author | thib |
|---|---|
| date | Fri, 01 Aug 2008 19:17:15 +0000 |
| parents | 223b71206888 |
| children | fa8511a21d05 |
line wrap: on
line diff
--- a/music2/koedec_ogg.cc +++ b/music2/koedec_ogg.cc @@ -98,6 +98,12 @@ static long ogg_tellfunc(void* datasourc static int ogg_closefunc(void* datasource) { return 0; } +int ogg_get_rate(FILE *stream) +{ + OggVorbis_File vf; + ov_open(stream, &vf, NULL, 0); + return vf.vi->rate; +} extern char* decode_koe_ogg(AvgKoeInfo info, int* dest_len) { if (info.stream == 0) return 0;
