1 |
--- a/music_flac.c 2011-01-15 16:37:56.000000000 +0100 |
2 |
+++ b/music_flac.c 2011-01-15 16:37:59.000000000 +0100 |
3 |
@@ -405,7 +405,6 @@ |
4 |
/* Read some FLAC stream data and convert it for output */ |
5 |
static void FLAC_getsome(FLAC_music *music) |
6 |
{ |
7 |
- int section; |
8 |
SDL_AudioCVT *cvt; |
9 |
|
10 |
/* GET AUDIO wAVE DATA */ |
11 |
@@ -475,7 +474,7 @@ |
12 |
return; |
13 |
} |
14 |
cvt = &music->cvt; |
15 |
- if (section != music->section) { |
16 |
+ if (music->section < 0) { |
17 |
|
18 |
SDL_BuildAudioCVT (cvt, AUDIO_S16, (Uint8)music->flac_data.channels, |
19 |
(int)music->flac_data.sample_rate, mixer.format, |
20 |
@@ -484,7 +483,7 @@ |
21 |
free (cvt->buf); |
22 |
} |
23 |
cvt->buf = (Uint8 *)malloc (music->flac_data.data_len * cvt->len_mult); |
24 |
- music->section = section; |
25 |
+ music->section = 0; |
26 |
} |
27 |
if (cvt->buf) { |
28 |
memcpy (cvt->buf, music->flac_data.data, music->flac_data.data_read); |
29 |
|