kcat
kcat
> What do you think about the idea of a virtual device that wraps all this complexity in a less roundabout way? I think it could simplify hot-plugging for most...
> @Swyter how do you get access to `alBufferCallbackSOFT` ? I'm not seeing it available/exposed in any headers... It's an in-progress extension right now, subject to incompatible changes, so it's...
There's a function/in-progress extension now with commit e824c808a0662361c9acdd9f97390d2412f21981 for reopening a playback device. ```c if(alcIsExtensionPresent(device, "ALC_SOFTX_reopen_device")) { ALCboolean (ALC_APIENTRY*alcReopenDeviceSOFT)(ALCdevice *device, const ALCchar *name, const ALCint *attribs); alcReopenDeviceSOFT = alcGetProcAddress(device, "alcReopenDeviceSOFT");...
> that can take at least 3 or 4 milliseconds of your frame on a beefy computer. Interesting, I'm surprised it's that fast. It has to marshal the call to...
From what I can see, `0x88890004` is `AUDCLNT_E_DEVICE_INVALIDATED`, which MSDN says > `IAudioClient::GetCurrentPadding` > `AUDCLNT_E_DEVICE_INVALIDATED` - The audio endpoint device has been unplugged, or the audio hardware or associated hardware...
> most of the time I get that padding error in the console, and nothing plays through the speakers (even though `alcReopenDeviceSOFT` returned `ALC_TRUE`). > > I'm getting the notification...
> Not sure what you mean by reconfigured per se, but I have a device monitor service that will fire a notification when a device is added, removed, or the...
> 1. Headphones are plugged in prior to launching app/starting OpenAL. > 2. Audio plays fine through headphones. I then unplug the headphones. > 3. I hit the padding error...
If that's where the log ends until the device closes, everything looks fine. The new device is opened, configured, and started without error. Nor is there any error from the...
> No, the device is not reported as connected when it's silent (`ALC_CONNECTED` is `0`) > ... > No, just checked, and the source states become `AL_STOPPED` when the padding...