Mercurial > sdl-ios-xcode
comparison src/audio/disk/SDL_diskaudio.c @ 2060:866052b01ee5
indent is evil
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 28 Oct 2006 16:48:03 +0000 |
parents | 5f6550e5184f |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2059:4685ccd33d0e | 2060:866052b01ee5 |
---|---|
110 { | 110 { |
111 const char *envr = SDL_getenv(DISKENVR_WRITEDELAY); | 111 const char *envr = SDL_getenv(DISKENVR_WRITEDELAY); |
112 const char *fname = DISKAUD_GetOutputFilename(devname); | 112 const char *fname = DISKAUD_GetOutputFilename(devname); |
113 | 113 |
114 this->hidden = (struct SDL_PrivateAudioData *) | 114 this->hidden = (struct SDL_PrivateAudioData *) |
115 SDL_malloc(sizeof (*this->hidden)); | 115 SDL_malloc(sizeof(*this->hidden)); |
116 if (this->hidden == NULL) { | 116 if (this->hidden == NULL) { |
117 SDL_OutOfMemory(); | 117 SDL_OutOfMemory(); |
118 return 0; | 118 return 0; |
119 } | 119 } |
120 SDL_memset(this->hidden, 0, sizeof (*this->hidden)); | 120 SDL_memset(this->hidden, 0, sizeof(*this->hidden)); |
121 | 121 |
122 /* Open the audio device */ | 122 /* Open the audio device */ |
123 this->hidden->output = SDL_RWFromFile(fname, "wb"); | 123 this->hidden->output = SDL_RWFromFile(fname, "wb"); |
124 if (this->hidden->output == NULL) { | 124 if (this->hidden->output == NULL) { |
125 DISKAUD_CloseDevice(this); | 125 DISKAUD_CloseDevice(this); |
147 /* We're ready to rock and roll. :-) */ | 147 /* We're ready to rock and roll. :-) */ |
148 return 1; | 148 return 1; |
149 } | 149 } |
150 | 150 |
151 static int | 151 static int |
152 DISKAUD_Init(SDL_AudioDriverImpl *impl) | 152 DISKAUD_Init(SDL_AudioDriverImpl * impl) |
153 { | 153 { |
154 /* Set the function pointers */ | 154 /* Set the function pointers */ |
155 impl->OpenDevice = DISKAUD_OpenDevice; | 155 impl->OpenDevice = DISKAUD_OpenDevice; |
156 impl->WaitDevice = DISKAUD_WaitDevice; | 156 impl->WaitDevice = DISKAUD_WaitDevice; |
157 impl->PlayDevice = DISKAUD_PlayDevice; | 157 impl->PlayDevice = DISKAUD_PlayDevice; |