Mercurial > sdl-ios-xcode
comparison src/audio/mme/SDL_mmeaudio.c @ 3830:29e83f221c62 SDL-ryan-multiple-audio-device
Fixed some things to use SDL C runtime functions.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 07 Oct 2006 19:56:47 +0000 |
parents | 1806fd1acba4 |
children | 66fb40445587 |
comparison
equal
deleted
inserted
replaced
3829:d3171647e661 | 3830:29e83f221c62 |
---|---|
82 MME_CloseDevice(this); | 82 MME_CloseDevice(this); |
83 SDL_OutOfMemory(); | 83 SDL_OutOfMemory(); |
84 return 0; | 84 return 0; |
85 } | 85 } |
86 | 86 |
87 memset(this->hidden->shm, '\0', sizeof (*this->hidden->shm)); | 87 SDL_memset(this->hidden->shm, '\0', sizeof (*this->hidden->shm)); |
88 this->hidden->shm->sound = 0; | 88 this->hidden->shm->sound = 0; |
89 this->hidden->shm->wFmt.wf.wFormatTag = WAVE_FORMAT_PCM; | 89 this->hidden->shm->wFmt.wf.wFormatTag = WAVE_FORMAT_PCM; |
90 | 90 |
91 /* Determine the audio parameters from the AudioSpec */ | 91 /* Determine the audio parameters from the AudioSpec */ |
92 /* Try for a closest match on audio format */ | 92 /* Try for a closest match on audio format */ |