Lines Matching refs:this
133 this->hidden->stream->Wait(this->hidden->stream, in SDL_FS_WaitDevice()
134 this->hidden->mixsamples); in SDL_FS_WaitDevice()
142 ret = this->hidden->stream->Write(this->hidden->stream, in SDL_FS_PlayDevice()
143 this->hidden->mixbuf, in SDL_FS_PlayDevice()
144 this->hidden->mixsamples); in SDL_FS_PlayDevice()
147 SDL_OpenedAudioDeviceDisconnected(this); in SDL_FS_PlayDevice()
150 fprintf(stderr, "Wrote %d bytes of audio data\n", this->hidden->mixlen); in SDL_FS_PlayDevice()
158 return (this->hidden->mixbuf); in SDL_FS_GetDeviceBuf()
165 if (this->hidden->stream) { in SDL_FS_CloseDevice()
166 this->hidden->stream->Release(this->hidden->stream); in SDL_FS_CloseDevice()
168 if (this->hidden->fs) { in SDL_FS_CloseDevice()
169 this->hidden->fs->Release(this->hidden->fs); in SDL_FS_CloseDevice()
171 SDL_free(this->hidden->mixbuf); in SDL_FS_CloseDevice()
172 SDL_free(this->hidden); in SDL_FS_CloseDevice()
186 this->hidden = (struct SDL_PrivateAudioData *) in SDL_FS_OpenDevice()
187 SDL_malloc((sizeof *this->hidden)); in SDL_FS_OpenDevice()
188 if (this->hidden == NULL) { in SDL_FS_OpenDevice()
191 SDL_zerop(this->hidden); in SDL_FS_OpenDevice()
194 for (test_format = SDL_FirstAudioFormat(this->spec.format); in SDL_FS_OpenDevice()
232 this->spec.format = test_format; in SDL_FS_OpenDevice()
235 ret = SDL_NAME(FusionSoundCreate) (&this->hidden->fs); in SDL_FS_OpenDevice()
240 this->hidden->mixsamples = this->spec.size / bytes / this->spec.channels; in SDL_FS_OpenDevice()
245 desc.samplerate = this->spec.freq; in SDL_FS_OpenDevice()
246 desc.buffersize = this->spec.size * FUSION_BUFFERS; in SDL_FS_OpenDevice()
247 desc.channels = this->spec.channels; in SDL_FS_OpenDevice()
252 this->hidden->fs->CreateStream(this->hidden->fs, &desc, in SDL_FS_OpenDevice()
253 &this->hidden->stream); in SDL_FS_OpenDevice()
261 ret = this->hidden->stream->GetDescription(this->hidden->stream, &desc); in SDL_FS_OpenDevice()
263 this->spec.freq = desc.samplerate; in SDL_FS_OpenDevice()
264 this->spec.size = in SDL_FS_OpenDevice()
266 this->spec.channels = desc.channels; in SDL_FS_OpenDevice()
269 SDL_CalculateAudioSpec(&this->spec); in SDL_FS_OpenDevice()
272 this->hidden->mixlen = this->spec.size; in SDL_FS_OpenDevice()
273 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->hidden->mixlen); in SDL_FS_OpenDevice()
274 if (this->hidden->mixbuf == NULL) { in SDL_FS_OpenDevice()
277 SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size); in SDL_FS_OpenDevice()