From e7edb06e7afab91698ecb92dd5539aa95aa24b70 Mon Sep 17 00:00:00 2001 From: Ivan Epifanov Date: Fri, 4 Dec 2020 00:06:15 +0300 Subject: [PATCH] Audio fix --- src/audio/vita/SDL_vitaaudio.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/audio/vita/SDL_vitaaudio.c b/src/audio/vita/SDL_vitaaudio.c index 5225b8033..24aa0f5be 100644 --- a/src/audio/vita/SDL_vitaaudio.c +++ b/src/audio/vita/SDL_vitaaudio.c @@ -68,20 +68,7 @@ VITAAUD_OpenDevice(_THIS, void *handle, const char *devname, int iscapture) this->spec.samples = SCE_AUDIO_SAMPLE_ALIGN(this->spec.samples); /* Update the fragment size as size in bytes. */ -/* SDL_CalculateAudioSpec(this->spec); MOD */ - switch (this->spec.format) { - case AUDIO_U8: - this->spec.silence = 0x80; - break; - default: - this->spec.silence = 0x00; - break; - } - this->spec.size = SDL_AUDIO_BITSIZE(this->spec.format) / 8; - this->spec.size *= this->spec.channels; - this->spec.size *= this->spec.samples; - -/* ========================================== */ + SDL_CalculateAudioSpec(&this->spec); /* Allocate the mixing buffer. Its size and starting address must be a multiple of 64 bytes. Our sample count is already a multiple of