Mercurial > sdl-ios-xcode
diff src/audio/dsp/SDL_dspaudio.c @ 2060:866052b01ee5
indent is evil
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 28 Oct 2006 16:48:03 +0000 |
parents | 5f6550e5184f |
children | 579abbb51f80 |
line wrap: on
line diff
--- a/src/audio/dsp/SDL_dspaudio.c Sat Oct 28 16:41:54 2006 +0000 +++ b/src/audio/dsp/SDL_dspaudio.c Sat Oct 28 16:48:03 2006 +0000 @@ -111,7 +111,7 @@ return outputDeviceCount; } - return 0; /* shouldn't ever hit this. */ + return 0; /* shouldn't ever hit this. */ } static const char * @@ -158,8 +158,8 @@ /* We don't care what the devname is...we'll try to open anything. */ /* ...but default to first name in the list... */ if (devname == NULL) { - if ( ((iscapture) && (inputDeviceCount == 0)) || - ((!iscapture) && (outputDeviceCount == 0)) ) { + if (((iscapture) && (inputDeviceCount == 0)) || + ((!iscapture) && (outputDeviceCount == 0))) { SDL_SetError("No such audio device"); return 0; } @@ -168,7 +168,7 @@ /* Initialize all variables that we clean on shutdown */ this->hidden = (struct SDL_PrivateAudioData *) - SDL_malloc((sizeof *this->hidden)); + SDL_malloc((sizeof *this->hidden)); if (this->hidden == NULL) { SDL_OutOfMemory(); return 0; @@ -265,8 +265,8 @@ /* Set the audio format */ value = format; - if ( (ioctl(this->hidden->audio_fd, SNDCTL_DSP_SETFMT, &value) < 0) || - (value != format) ) { + if ((ioctl(this->hidden->audio_fd, SNDCTL_DSP_SETFMT, &value) < 0) || + (value != format)) { perror("SNDCTL_DSP_SETFMT"); DSP_CloseDevice(this); SDL_SetError("Couldn't set audio format"); @@ -360,7 +360,7 @@ } static int -DSP_Init(SDL_AudioDriverImpl *impl) +DSP_Init(SDL_AudioDriverImpl * impl) { /* Set the function pointers */ impl->DetectDevices = DSP_DetectDevices;