Navigation Menu

Skip to content

Commit

Permalink
PSP: Removed inlined copy of SDL_CalculateAudioSpec()'s functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jan 27, 2016
1 parent 88f5193 commit 9bdd188
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/audio/psp/SDL_pspaudio.c
Expand Up @@ -66,20 +66,7 @@ PSPAUD_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
this->spec.freq = 44100;

/* 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
Expand Down

0 comments on commit 9bdd188

Please sign in to comment.