| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | if (this->spec.channels == 1) { |
| | | format = PSP_AUDIO_FORMAT_MONO; |
| | | } else { |
| | | this->spec.channels = 2; |
| | | format = PSP_AUDIO_FORMAT_STEREO; |
| | | } |
| | | this->hidden->channel = sceAudioChReserve(PSP_AUDIO_NEXT_CHANNEL, this->spec.samples, format); |