Lines Matching refs:this

16     License along with this library; if not, write to the Free Software
80 SDL_AudioDevice *this;
84 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice));
85 if ( this ) {
86 SDL_memset(this, 0, (sizeof *this));
87 this->hidden = (struct SDL_PrivateAudioData *)
88 SDL_malloc((sizeof *this->hidden));
90 if ( (this == NULL) || (this->hidden == NULL) ) {
92 if ( this ) {
93 SDL_free(this);
97 SDL_memset(this->hidden, 0, (sizeof *this->hidden));
100 this->hidden->write_delay = (envr) ? SDL_atoi(envr) : DISKDEFAULT_WRITEDELAY;
103 this->OpenAudio = DISKAUD_OpenAudio;
104 this->WaitAudio = DISKAUD_WaitAudio;
105 this->PlayAudio = DISKAUD_PlayAudio;
106 this->GetAudioBuf = DISKAUD_GetAudioBuf;
107 this->CloseAudio = DISKAUD_CloseAudio;
109 this->free = DISKAUD_DeleteDevice;
111 return this;
122 SDL_Delay(this->hidden->write_delay);
130 written = SDL_RWwrite(this->hidden->output,
131 this->hidden->mixbuf, 1,
132 this->hidden->mixlen);
135 if ( (Uint32)written != this->hidden->mixlen ) {
136 this->enabled = 0;
145 return(this->hidden->mixbuf);
150 if ( this->hidden->mixbuf != NULL ) {
151 SDL_FreeAudioMem(this->hidden->mixbuf);
152 this->hidden->mixbuf = NULL;
154 if ( this->hidden->output != NULL ) {
155 SDL_RWclose(this->hidden->output);
156 this->hidden->output = NULL;
165 this->hidden->output = SDL_RWFromFile(fname, "wb");
166 if ( this->hidden->output == NULL ) {
176 this->hidden->mixlen = spec->size;
177 this->hidden->mixbuf = (Uint8 *) SDL_AllocAudioMem(this->hidden->mixlen);
178 if ( this->hidden->mixbuf == NULL ) {
181 SDL_memset(this->hidden->mixbuf, spec->silence, spec->size);