mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
arts: Patched to (maybe) compile.
This commit is contained in:
parent
a7dddacd99
commit
ecbd625c4b
@ -217,13 +217,13 @@ ARTS_FlushCapture(_THIS)
|
|||||||
arts_stream_t stream = this->hidden->stream;
|
arts_stream_t stream = this->hidden->stream;
|
||||||
int remain = SDL_NAME(arts_stream_get)(stream, ARTS_P_BUFFER_SPACE);
|
int remain = SDL_NAME(arts_stream_get)(stream, ARTS_P_BUFFER_SPACE);
|
||||||
Uint8 buf[512];
|
Uint8 buf[512];
|
||||||
while (space > 0) {
|
while (remain > 0) {
|
||||||
const int len = SDL_min(sizeof (buf), remain);
|
const int len = SDL_min(sizeof (buf), remain);
|
||||||
const int br = SDL_NAME(arts_read)(stream, buf, len);
|
const int br = SDL_NAME(arts_read)(stream, buf, len);
|
||||||
if (br <= 0) {
|
if (br <= 0) {
|
||||||
return; /* oh well. */
|
return; /* oh well. */
|
||||||
}
|
}
|
||||||
space -= br;
|
remain -= br;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user