Mercurial > sdl-ios-xcode
comparison src/audio/sun/SDL_sunaudio.c @ 1184:a9542c38dcdb
Date: Tue, 22 Nov 2005 14:11:06 +0100 (MET)
From: Mattias Karlsson <betasoft@acc.umu.se>
To: sdl@libsdl.org
Subject: [SDL] [PATCH] Fix (tiny) build problems on solaris (fwd)
This small patch fixes building audio on solaris 2.9 with gcc 4.0
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 22 Nov 2005 15:07:41 +0000 |
parents | b8d311d90021 |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1183:634d85aefc8c | 1184:a9542c38dcdb |
---|---|
163 FD_SET(audio_fd, &fdset); | 163 FD_SET(audio_fd, &fdset); |
164 select(audio_fd+1, NULL, &fdset, NULL, NULL); | 164 select(audio_fd+1, NULL, &fdset, NULL, NULL); |
165 #endif | 165 #endif |
166 } | 166 } |
167 | 167 |
168 static Uint8 snd2au(int sample); | |
168 void DSP_PlayAudio(_THIS) | 169 void DSP_PlayAudio(_THIS) |
169 { | 170 { |
170 static Uint8 snd2au(int sample); | |
171 /* Write the audio data */ | 171 /* Write the audio data */ |
172 if ( ulaw_only ) { | 172 if ( ulaw_only ) { |
173 /* Assuming that this->spec.freq >= 8000 Hz */ | 173 /* Assuming that this->spec.freq >= 8000 Hz */ |
174 int accum, incr, pos; | 174 int accum, incr, pos; |
175 Uint8 *aubuf; | 175 Uint8 *aubuf; |