comparison decoders/mp3.c @ 62:b13fafb976be

Changed _D macro to DBGSND.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 24 Sep 2001 15:31:25 +0000
parents 6df2f69e037e
children 40006625142a
comparison
equal deleted inserted replaced
61:7d3a6ea7f1f0 62:b13fafb976be
87 87
88 if (first_time) 88 if (first_time)
89 { 89 {
90 SMPEG_version v; 90 SMPEG_version v;
91 SMPEG_VERSION(&v); 91 SMPEG_VERSION(&v);
92 _D(("MP3: Compiled against SMPEG v%d.%d.%d.\n", 92 SNDDBG(("MP3: Compiled against SMPEG v%d.%d.%d.\n",
93 v.major, v.minor, v.patch)); 93 v.major, v.minor, v.patch));
94 first_time = 0; 94 first_time = 0;
95 } /* if */ 95 } /* if */
96 } /* output_version */ 96 } /* output_version */
97 97
124 SDL_RWseek(internal->rw, -sizeof (mp3_magic), SEEK_CUR); 124 SDL_RWseek(internal->rw, -sizeof (mp3_magic), SEEK_CUR);
125 125
126 refCounter = RWops_RWRefCounter_new(internal->rw); 126 refCounter = RWops_RWRefCounter_new(internal->rw);
127 if (refCounter == NULL) 127 if (refCounter == NULL)
128 { 128 {
129 _D(("MP3: Failed to create reference counting RWops.\n")); 129 SNDDBG(("MP3: Failed to create reference counting RWops.\n"));
130 return(0); 130 return(0);
131 } /* if */ 131 } /* if */
132 132
133 /* replace original RWops. This is safe. Honest. :) */ 133 /* replace original RWops. This is safe. Honest. :) */
134 internal->rw = refCounter; 134 internal->rw = refCounter;
152 Sound_SetError("MP3: No audio stream found in data."); 152 Sound_SetError("MP3: No audio stream found in data.");
153 SMPEG_delete(smpeg); 153 SMPEG_delete(smpeg);
154 return(0); 154 return(0);
155 } /* if */ 155 } /* if */
156 156
157 _D(("MP3: Accepting data stream.\n")); 157 SNDDBG(("MP3: Accepting data stream.\n"));
158 _D(("MP3: has_audio == {%s}.\n", smpeg_info.has_audio ? "TRUE" : "FALSE")); 158 SNDDBG(("MP3: has_audio == {%s}.\n", smpeg_info.has_audio ? "TRUE" : "FALSE"));
159 _D(("MP3: has_video == {%s}.\n", smpeg_info.has_video ? "TRUE" : "FALSE")); 159 SNDDBG(("MP3: has_video == {%s}.\n", smpeg_info.has_video ? "TRUE" : "FALSE"));
160 _D(("MP3: width == (%d).\n", smpeg_info.width)); 160 SNDDBG(("MP3: width == (%d).\n", smpeg_info.width));
161 _D(("MP3: height == (%d).\n", smpeg_info.height)); 161 SNDDBG(("MP3: height == (%d).\n", smpeg_info.height));
162 _D(("MP3: current_frame == (%d).\n", smpeg_info.current_frame)); 162 SNDDBG(("MP3: current_frame == (%d).\n", smpeg_info.current_frame));
163 _D(("MP3: current_fps == (%f).\n", smpeg_info.current_fps)); 163 SNDDBG(("MP3: current_fps == (%f).\n", smpeg_info.current_fps));
164 _D(("MP3: audio_string == [%s].\n", smpeg_info.audio_string)); 164 SNDDBG(("MP3: audio_string == [%s].\n", smpeg_info.audio_string));
165 _D(("MP3: audio_current_frame == (%d).\n", smpeg_info.audio_current_frame)); 165 SNDDBG(("MP3: audio_current_frame == (%d).\n", smpeg_info.audio_current_frame));
166 _D(("MP3: current_offset == (%d).\n", smpeg_info.current_offset)); 166 SNDDBG(("MP3: current_offset == (%d).\n", smpeg_info.current_offset));
167 _D(("MP3: total_size == (%d).\n", smpeg_info.total_size)); 167 SNDDBG(("MP3: total_size == (%d).\n", smpeg_info.total_size));
168 _D(("MP3: current_time == (%f).\n", smpeg_info.current_time)); 168 SNDDBG(("MP3: current_time == (%f).\n", smpeg_info.current_time));
169 _D(("MP3: total_time == (%f).\n", smpeg_info.total_time)); 169 SNDDBG(("MP3: total_time == (%f).\n", smpeg_info.total_time));
170 170
171 SMPEG_enablevideo(smpeg, 0); 171 SMPEG_enablevideo(smpeg, 0);
172 SMPEG_enableaudio(smpeg, 1); 172 SMPEG_enableaudio(smpeg, 1);
173 SMPEG_loop(smpeg, 0); 173 SMPEG_loop(smpeg, 0);
174 174