mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 12:01:43 +00:00
snd_mp3.c (mp3_startread): set the missing stream->info.bits value
(for completeness only.) git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@865 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
4a69497ed6
commit
f68cafe5be
1 changed files with 2 additions and 1 deletions
|
@ -252,8 +252,9 @@ static int mp3_startread(snd_stream_t *stream)
|
||||||
|
|
||||||
mad_timer_add(&p->Timer,p->Frame.header.duration);
|
mad_timer_add(&p->Timer,p->Frame.header.duration);
|
||||||
mad_synth_frame(&p->Synth,&p->Frame);
|
mad_synth_frame(&p->Synth,&p->Frame);
|
||||||
stream->info.width = MP3_MAD_SAMPLEWIDTH;
|
|
||||||
stream->info.rate = p->Synth.pcm.samplerate;
|
stream->info.rate = p->Synth.pcm.samplerate;
|
||||||
|
stream->info.bits = MP3_MAD_SAMPLEBITS;
|
||||||
|
stream->info.width = MP3_MAD_SAMPLEWIDTH;
|
||||||
|
|
||||||
p->cursamp = 0;
|
p->cursamp = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue