PSP: Removed inlined copy of SDL_CalculateAudioSpec()'s functionality.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 27 Jan 2016 23:20:23 +0100
changeset 10058d141e7945ddf
parent 10057 1599a0012da5
child 10059 25f67a2e77a0
PSP: Removed inlined copy of SDL_CalculateAudioSpec()'s functionality.
src/audio/psp/SDL_pspaudio.c
     1.1 --- a/src/audio/psp/SDL_pspaudio.c	Tue Jan 26 22:20:05 2016 +0100
     1.2 +++ b/src/audio/psp/SDL_pspaudio.c	Wed Jan 27 23:20:23 2016 +0100
     1.3 @@ -66,20 +66,7 @@
     1.4      this->spec.freq = 44100;
     1.5  
     1.6      /* Update the fragment size as size in bytes. */
     1.7 -/*  SDL_CalculateAudioSpec(this->spec); MOD */
     1.8 -    switch (this->spec.format) {
     1.9 -    case AUDIO_U8:
    1.10 -        this->spec.silence = 0x80;
    1.11 -        break;
    1.12 -    default:
    1.13 -        this->spec.silence = 0x00;
    1.14 -        break;
    1.15 -    }
    1.16 -    this->spec.size = SDL_AUDIO_BITSIZE(this->spec.format) / 8;
    1.17 -    this->spec.size *= this->spec.channels;
    1.18 -    this->spec.size *= this->spec.samples;
    1.19 -
    1.20 -/* ========================================== */
    1.21 +    SDL_CalculateAudioSpec(&this->spec);
    1.22  
    1.23      /* Allocate the mixing buffer.  Its size and starting address must
    1.24         be a multiple of 64 bytes.  Our sample count is already a multiple of