src/audio/psp/SDL_pspaudio.c
changeset 10281 2a002e96888f
parent 10258 0ba7106e9a6d
child 10473 d6427519ca66
     1.1 --- a/src/audio/psp/SDL_pspaudio.c	Thu Aug 11 22:04:49 2016 -0400
     1.2 +++ b/src/audio/psp/SDL_pspaudio.c	Thu Aug 11 22:22:09 2016 -0400
     1.3 @@ -39,10 +39,10 @@
     1.4  #include <pspthreadman.h>
     1.5  
     1.6  /* The tag name used by PSP audio */
     1.7 -#define PSPAUD_DRIVER_NAME         "psp"
     1.8 +#define PSPAUDIO_DRIVER_NAME         "psp"
     1.9  
    1.10  static int
    1.11 -PSPAUD_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
    1.12 +PSPAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
    1.13  {
    1.14      int format, mixlen, i;
    1.15      this->hidden = (struct SDL_PrivateAudioData *)
    1.16 @@ -98,7 +98,7 @@
    1.17      return 0;
    1.18  }
    1.19  
    1.20 -static void PSPAUD_PlayDevice(_THIS)
    1.21 +static void PSPAUDIO_PlayDevice(_THIS)
    1.22  {
    1.23      Uint8 *mixbuf = this->hidden->mixbufs[this->hidden->next_buffer];
    1.24  
    1.25 @@ -112,16 +112,16 @@
    1.26  }
    1.27  
    1.28  /* This function waits until it is possible to write a full sound buffer */
    1.29 -static void PSPAUD_WaitDevice(_THIS)
    1.30 +static void PSPAUDIO_WaitDevice(_THIS)
    1.31  {
    1.32      /* Because we block when sending audio, there's no need for this function to do anything. */
    1.33  }
    1.34 -static Uint8 *PSPAUD_GetDeviceBuf(_THIS)
    1.35 +static Uint8 *PSPAUDIO_GetDeviceBuf(_THIS)
    1.36  {
    1.37      return this->hidden->mixbufs[this->hidden->next_buffer];
    1.38  }
    1.39  
    1.40 -static void PSPAUD_CloseDevice(_THIS)
    1.41 +static void PSPAUDIO_CloseDevice(_THIS)
    1.42  {
    1.43      if (this->hidden->channel >= 0) {
    1.44          sceAudioChRelease(this->hidden->channel);
    1.45 @@ -130,7 +130,7 @@
    1.46      SDL_free(this->hidden);
    1.47  }
    1.48  
    1.49 -static void PSPAUD_ThreadInit(_THIS)
    1.50 +static void PSPAUDIO_ThreadInit(_THIS)
    1.51  {
    1.52      /* Increase the priority of this audio thread by 1 to put it
    1.53         ahead of other SDL threads. */
    1.54 @@ -145,16 +145,16 @@
    1.55  
    1.56  
    1.57  static int
    1.58 -PSPAUD_Init(SDL_AudioDriverImpl * impl)
    1.59 +PSPAUDIO_Init(SDL_AudioDriverImpl * impl)
    1.60  {
    1.61      /* Set the function pointers */
    1.62 -    impl->OpenDevice = PSPAUD_OpenDevice;
    1.63 -    impl->PlayDevice = PSPAUD_PlayDevice;
    1.64 -    impl->WaitDevice = PSPAUD_WaitDevice;
    1.65 -    impl->GetDeviceBuf = PSPAUD_GetDeviceBuf;
    1.66 -    impl->WaitDone = PSPAUD_WaitDevice;
    1.67 -    impl->CloseDevice = PSPAUD_CloseDevice;
    1.68 -    impl->ThreadInit = PSPAUD_ThreadInit;
    1.69 +    impl->OpenDevice = PSPAUDIO_OpenDevice;
    1.70 +    impl->PlayDevice = PSPAUDIO_PlayDevice;
    1.71 +    impl->WaitDevice = PSPAUDIO_WaitDevice;
    1.72 +    impl->GetDeviceBuf = PSPAUDIO_GetDeviceBuf;
    1.73 +    impl->WaitDone = PSPAUDIO_WaitDevice;
    1.74 +    impl->CloseDevice = PSPAUDIO_CloseDevice;
    1.75 +    impl->ThreadInit = PSPAUDIO_ThreadInit;
    1.76  
    1.77      /* PSP audio device */
    1.78      impl->OnlyHasDefaultOutputDevice = 1;
    1.79 @@ -170,8 +170,8 @@
    1.80      return 1;   /* this audio target is available. */
    1.81  }
    1.82  
    1.83 -AudioBootStrap PSPAUD_bootstrap = {
    1.84 -    "psp", "PSP audio driver", PSPAUD_Init, 0
    1.85 +AudioBootStrap PSPAUDIO_bootstrap = {
    1.86 +    "psp", "PSP audio driver", PSPAUDIO_Init, 0
    1.87  };
    1.88  
    1.89   /* SDL_AUDI */