Lines Matching defs:this
16 License along with this library; if not, write to the Free Software
64 SDL_AudioDevice *this;
67 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice));
68 if ( this ) {
69 SDL_memset(this, 0, (sizeof *this));
70 this->hidden = (struct SDL_PrivateAudioData *)
71 SDL_malloc((sizeof *this->hidden));
73 if ( (this == NULL) || (this->hidden == NULL) ) {
75 if ( this ) {
76 SDL_free(this);
80 SDL_memset(this->hidden, 0, (sizeof *this->hidden));
83 this->OpenAudio = DUMMYAUD_OpenAudio;
84 this->WaitAudio = DUMMYAUD_WaitAudio;
85 this->PlayAudio = DUMMYAUD_PlayAudio;
86 this->GetAudioBuf = DUMMYAUD_GetAudioBuf;
87 this->CloseAudio = DUMMYAUD_CloseAudio;
89 this->free = DUMMYAUD_DeleteDevice;
91 return this;
103 if (this->hidden->initial_calls)
104 this->hidden->initial_calls--;
106 SDL_Delay(this->hidden->write_delay);
111 /* no-op...this is a null driver. */
116 return(this->hidden->mixbuf);
121 if ( this->hidden->mixbuf != NULL ) {
122 SDL_FreeAudioMem(this->hidden->mixbuf);
123 this->hidden->mixbuf = NULL;
132 this->hidden->mixlen = spec->size;
133 this->hidden->mixbuf = (Uint8 *) SDL_AllocAudioMem(this->hidden->mixlen);
134 if ( this->hidden->mixbuf == NULL ) {
137 SDL_memset(this->hidden->mixbuf, spec->silence, spec->size);
143 * We try to make this request more audio at the correct rate for
149 this->hidden->initial_calls = 2;
150 this->hidden->write_delay =