mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +01:00
play all logical streams
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@244 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
13797f897f
commit
ff58d22b78
@ -128,8 +128,6 @@ VGMSTREAM * init_vgmstream_ogg_vorbis(STREAMFILE *streamFile) {
|
||||
ovf = &data->ogg_vorbis_file;
|
||||
inited_ovf = 1;
|
||||
|
||||
/* don't know how to deal with multiple logical streams yet */
|
||||
if (ov_streams(ovf) != 1) goto fail;
|
||||
data->bitstream = DEFAULT_BITSTREAM;
|
||||
|
||||
info = ov_info(ovf,DEFAULT_BITSTREAM);
|
||||
@ -162,7 +160,10 @@ VGMSTREAM * init_vgmstream_ogg_vorbis(STREAMFILE *streamFile) {
|
||||
/* fill in the vital statistics */
|
||||
vgmstream->channels = info->channels;
|
||||
vgmstream->sample_rate = info->rate;
|
||||
vgmstream->num_samples = ov_pcm_total(ovf,DEFAULT_BITSTREAM);
|
||||
|
||||
/* let's play the whole file */
|
||||
vgmstream->num_samples = ov_pcm_total(ovf,-1);
|
||||
|
||||
if (loop_flag) {
|
||||
vgmstream->loop_start_sample = loop_start;
|
||||
vgmstream->loop_end_sample = vgmstream->num_samples;
|
||||
|
Loading…
x
Reference in New Issue
Block a user