Skip to content

Commit 631f8c8

Browse files
committed
Update formatting using SDLs .clang-format to match the project's coding style/guidelines.
1 parent 6d53bed commit 631f8c8

13 files changed

+630
-773
lines changed

src/audio/ngage/SDL_ngageaudio.c

+7-11
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,17 @@ SDL_AudioDevice *NGAGE_GetAudioDeviceAddr()
3333
return devptr;
3434
}
3535

36-
static bool NGAGEAUDIO_OpenDevice(SDL_AudioDevice* device)
36+
static bool NGAGEAUDIO_OpenDevice(SDL_AudioDevice *device)
3737
{
3838
SDL_PrivateAudioData *phdata = SDL_calloc(1, sizeof(SDL_PrivateAudioData));
39-
if (!phdata)
40-
{
39+
if (!phdata) {
4140
SDL_OutOfMemory();
4241
return false;
4342
}
4443
device->hidden = phdata;
4544

4645
phdata->buffer = SDL_calloc(1, device->buffer_size);
47-
if (!phdata->buffer)
48-
{
46+
if (!phdata->buffer) {
4947
SDL_OutOfMemory();
5048
SDL_free(phdata);
5149
return false;
@@ -66,11 +64,10 @@ static bool NGAGEAUDIO_OpenDevice(SDL_AudioDevice* device)
6664
return true;
6765
}
6866

69-
static Uint8* NGAGEAUDIO_GetDeviceBuf(SDL_AudioDevice* device, int* buffer_size)
67+
static Uint8 *NGAGEAUDIO_GetDeviceBuf(SDL_AudioDevice *device, int *buffer_size)
7068
{
7169
SDL_PrivateAudioData *phdata = (SDL_PrivateAudioData *)device->hidden;
72-
if (!phdata)
73-
{
70+
if (!phdata) {
7471
*buffer_size = 0;
7572
return 0;
7673
}
@@ -79,10 +76,9 @@ static Uint8* NGAGEAUDIO_GetDeviceBuf(SDL_AudioDevice* device, int* buffer_size)
7976
return phdata->buffer;
8077
}
8178

82-
static void NGAGEAUDIO_CloseDevice(SDL_AudioDevice* device)
79+
static void NGAGEAUDIO_CloseDevice(SDL_AudioDevice *device)
8380
{
84-
if (device->hidden)
85-
{
81+
if (device->hidden) {
8682
SDL_free(device->hidden->buffer);
8783
SDL_free(device->hidden);
8884
}

0 commit comments

Comments
 (0)