mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
VITA: fix audio playback
This commit is contained in:

committed by
Sam Lantinga

parent
20f783532b
commit
1dbb813316
@@ -130,7 +130,8 @@ static bool VITAAUD_OpenDevice(SDL_AudioDevice *device)
|
|||||||
|
|
||||||
static bool VITAAUD_PlayDevice(SDL_AudioDevice *device, const Uint8 *buffer, int buffer_size)
|
static bool VITAAUD_PlayDevice(SDL_AudioDevice *device, const Uint8 *buffer, int buffer_size)
|
||||||
{
|
{
|
||||||
return (sceAudioOutOutput(device->hidden->port, buffer) == 0);
|
// sceAudioOutOutput returns amount of samples queued or < 0 on error
|
||||||
|
return (sceAudioOutOutput(device->hidden->port, buffer) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function waits until it is possible to write a full sound buffer
|
// This function waits until it is possible to write a full sound buffer
|
||||||
|
Reference in New Issue
Block a user