Lines Matching refs:this
105 SDLMMNotificationClient_QueryInterface(IMMNotificationClient *this, REFIID iid, void **ppv) in SDLMMNotificationClient_QueryInterface() argument
109 *ppv = this; in SDLMMNotificationClient_QueryInterface()
110 this->lpVtbl->AddRef(this); in SDLMMNotificationClient_QueryInterface()
121 SDLMMNotificationClient *this = (SDLMMNotificationClient *) ithis; in SDLMMNotificationClient_AddRef() local
122 return (ULONG) (SDL_AtomicIncRef(&this->refcount) + 1); in SDLMMNotificationClient_AddRef()
129 SDLMMNotificationClient *this = (SDLMMNotificationClient *) ithis; in SDLMMNotificationClient_Release() local
130 const ULONG retval = SDL_AtomicDecRef(&this->refcount); in SDLMMNotificationClient_Release()
132 SDL_AtomicSet(&this->refcount, 0); /* uhh... */ in SDLMMNotificationClient_Release()
217 SDLMMNotificationClient_OnPropertyValueChanged(IMMNotificationClient *this, LPCWSTR pwstrDeviceId, … in SDLMMNotificationClient_OnPropertyValueChanged() argument
290 this->hidden->coinitialized = SDL_TRUE; in WASAPI_PlatformThreadInit()
296 this->hidden->task = pAvSetMmThreadCharacteristicsW(TEXT("Pro Audio"), &idx); in WASAPI_PlatformThreadInit()
304 if (this->hidden->task && pAvRevertMmThreadCharacteristics) { in WASAPI_PlatformThreadDeinit()
305 pAvRevertMmThreadCharacteristics(this->hidden->task); in WASAPI_PlatformThreadDeinit()
306 this->hidden->task = NULL; in WASAPI_PlatformThreadDeinit()
309 if (this->hidden->coinitialized) { in WASAPI_PlatformThreadDeinit()
311 this->hidden->coinitialized = SDL_FALSE; in WASAPI_PlatformThreadDeinit()
318 LPCWSTR devid = this->hidden->devid; in WASAPI_ActivateDevice()
323 const EDataFlow dataflow = this->iscapture ? eCapture : eRender; in WASAPI_ActivateDevice()
331 this->hidden->client = NULL; in WASAPI_ActivateDevice()
336 …ret = IMMDevice_Activate(device, &SDL_IID_IAudioClient, CLSCTX_ALL, NULL, (void **) &this->hidden-… in WASAPI_ActivateDevice()
340 SDL_assert(this->hidden->client == NULL); in WASAPI_ActivateDevice()
344 SDL_assert(this->hidden->client != NULL); in WASAPI_ActivateDevice()
345 if (WASAPI_PrepDevice(this, isrecovery) == -1) { /* not async, fire it right away. */ in WASAPI_ActivateDevice()