From f68cafe5beefe09062d6f87440f5cc0f21a4abb9 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 27 Jul 2013 05:05:44 +0000 Subject: [PATCH] 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 --- Quake/snd_mp3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Quake/snd_mp3.c b/Quake/snd_mp3.c index 068bbf1f..2ee4e2c5 100644 --- a/Quake/snd_mp3.c +++ b/Quake/snd_mp3.c @@ -252,8 +252,9 @@ static int mp3_startread(snd_stream_t *stream) mad_timer_add(&p->Timer,p->Frame.header.duration); mad_synth_frame(&p->Synth,&p->Frame); - stream->info.width = MP3_MAD_SAMPLEWIDTH; stream->info.rate = p->Synth.pcm.samplerate; + stream->info.bits = MP3_MAD_SAMPLEBITS; + stream->info.width = MP3_MAD_SAMPLEWIDTH; p->cursamp = 0;