Lines Matching refs:this
199 struct SDL_PrivateAudioData *audiodata = this->hidden; in openslES_DestroyPCMRecorder()
231 struct SDL_PrivateAudioData *audiodata = this->hidden; in openslES_CreatePCMRecorder()
242 this->spec.format = AUDIO_S16SYS; in openslES_CreatePCMRecorder()
243 this->spec.channels = 1; in openslES_CreatePCMRecorder()
247 SDL_CalculateAudioSpec(&this->spec); in openslES_CreatePCMRecorder()
250 this->spec.freq, SDL_AUDIO_BITSIZE(this->spec.format), in openslES_CreatePCMRecorder()
251 this->spec.channels, (this->spec.format & 0x1000) ? "BE" : "LE", this->spec.samples); in openslES_CreatePCMRecorder()
261 format_pcm.numChannels = this->spec.channels; in openslES_CreatePCMRecorder()
262 format_pcm.samplesPerSec = this->spec.freq * 1000; /* / kilo Hz to milli Hz */ in openslES_CreatePCMRecorder()
263 format_pcm.bitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format); in openslES_CreatePCMRecorder()
264 format_pcm.containerSize = SDL_AUDIO_BITSIZE(this->spec.format); in openslES_CreatePCMRecorder()
308 …result = (*recorderBufferQueue)->RegisterCallback(recorderBufferQueue, bqRecorderCallback, this->h… in openslES_CreatePCMRecorder()
322 audiodata->mixbuff = (Uint8 *) SDL_malloc(NUM_BUFFERS * this->spec.size); in openslES_CreatePCMRecorder()
329 audiodata->pmixbuff[i] = audiodata->mixbuff + i * this->spec.size; in openslES_CreatePCMRecorder()
341 …result = (*recorderBufferQueue)->Enqueue(recorderBufferQueue, audiodata->pmixbuff[i], this->spec.s… in openslES_CreatePCMRecorder()
359 openslES_DestroyPCMRecorder(this); in openslES_CreatePCMRecorder()
377 struct SDL_PrivateAudioData *audiodata = this->hidden; in openslES_DestroyPCMPlayer()
411 struct SDL_PrivateAudioData *audiodata = this->hidden; in openslES_CreatePCMPlayer()
422 this->spec.format = AUDIO_S16SYS; in openslES_CreatePCMPlayer()
424 SDL_AudioFormat test_format = SDL_FirstAudioFormat(this->spec.format); in openslES_CreatePCMPlayer()
437 this->spec.format = test_format; in openslES_CreatePCMPlayer()
441 SDL_CalculateAudioSpec(&this->spec); in openslES_CreatePCMPlayer()
444 this->spec.freq, SDL_AUDIO_BITSIZE(this->spec.format), in openslES_CreatePCMPlayer()
445 this->spec.channels, (this->spec.format & 0x1000) ? "BE" : "LE", this->spec.samples); in openslES_CreatePCMPlayer()
451 format_pcm.numChannels = this->spec.channels; in openslES_CreatePCMPlayer()
452 format_pcm.samplesPerSec = this->spec.freq * 1000; /* / kilo Hz to milli Hz */ in openslES_CreatePCMPlayer()
453 format_pcm.bitsPerSample = SDL_AUDIO_BITSIZE(this->spec.format); in openslES_CreatePCMPlayer()
454 format_pcm.containerSize = SDL_AUDIO_BITSIZE(this->spec.format); in openslES_CreatePCMPlayer()
456 if (SDL_AUDIO_ISBIGENDIAN(this->spec.format)) { in openslES_CreatePCMPlayer()
462 switch (this->spec.channels) in openslES_CreatePCMPlayer()
490 this->spec.channels = 2; in openslES_CreatePCMPlayer()
541 …result = (*bqPlayerBufferQueue)->RegisterCallback(bqPlayerBufferQueue, bqPlayerCallback, this->hid… in openslES_CreatePCMPlayer()
564 audiodata->mixbuff = (Uint8 *) SDL_malloc(NUM_BUFFERS * this->spec.size); in openslES_CreatePCMPlayer()
571 audiodata->pmixbuff[i] = audiodata->mixbuff + i * this->spec.size; in openslES_CreatePCMPlayer()
585 openslES_DestroyPCMPlayer(this); in openslES_CreatePCMPlayer()
593 this->hidden = (struct SDL_PrivateAudioData *) SDL_calloc(1, (sizeof *this->hidden)); in openslES_OpenDevice()
594 if (this->hidden == NULL) { in openslES_OpenDevice()
600 return openslES_CreatePCMRecorder(this); in openslES_OpenDevice()
603 return openslES_CreatePCMPlayer(this); in openslES_OpenDevice()
610 struct SDL_PrivateAudioData *audiodata = this->hidden; in openslES_WaitDevice()
621 struct SDL_PrivateAudioData *audiodata = this->hidden; in openslES_PlayDevice()
627 …Queue)->Enqueue(bqPlayerBufferQueue, audiodata->pmixbuff[audiodata->next_buffer], this->spec.size); in openslES_PlayDevice()
656 struct SDL_PrivateAudioData *audiodata = this->hidden; in openslES_GetDeviceBuf()
665 struct SDL_PrivateAudioData *audiodata = this->hidden; in openslES_CaptureFromDevice()
672 SDL_assert(buflen == this->spec.size); in openslES_CaptureFromDevice()
673 SDL_memcpy(buffer, audiodata->pmixbuff[audiodata->next_buffer], this->spec.size); in openslES_CaptureFromDevice()
676 …Queue)->Enqueue(recorderBufferQueue, audiodata->pmixbuff[audiodata->next_buffer], this->spec.size); in openslES_CaptureFromDevice()
687 return this->spec.size; in openslES_CaptureFromDevice()
695 if (this->iscapture) { in openslES_CloseDevice()
697 openslES_DestroyPCMRecorder(this); in openslES_CloseDevice()
700 openslES_DestroyPCMPlayer(this); in openslES_CloseDevice()
703 SDL_free(this->hidden); in openslES_CloseDevice()