comparison libmpdemux/demux_rawaudio.c @ 8524:fe542f0201ea

CDDA seeking fixed
author arpi
date Sun, 22 Dec 2002 17:22:48 +0000
parents fb88ccbc5ccc
children 53e738a54064
comparison
equal deleted inserted replaced
8523:31f102fc3aea 8524:fe542f0201ea
85 else 85 else
86 pos = base + (rel_seek_secs*sh_audio->i_bps); 86 pos = base + (rel_seek_secs*sh_audio->i_bps);
87 87
88 pos -= (pos % (sh_audio->channels * sh_audio->samplesize) ); 88 pos -= (pos % (sh_audio->channels * sh_audio->samplesize) );
89 stream_seek(s,pos); 89 stream_seek(s,pos);
90 sh_audio->delay=pos / (float)(sh_audio->wf->nAvgBytesPerSec);
90 resync_audio_stream(sh_audio); 91 resync_audio_stream(sh_audio);
92 // printf("demux_rawaudio: streamtell=%d\n",(int)stream_tell(demuxer->stream));
91 } 93 }