aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-12-27 14:23:31 -0800
committerChris Robinson <[email protected]>2021-12-27 14:23:31 -0800
commitf1a970e6804ad1d95b70dd44662ef2aa180438f0 (patch)
tree84aa402475e0b31ee70257f6b693de7a10efb5e2 /alc
parent21e2b9aeeaaa5e055db9f453b1af645b7eab8903 (diff)
Trace the device format after starting playback
Some devices can change it when starting, so it's useful to know what the device configuration is when that happens.
Diffstat (limited to 'alc')
-rw-r--r--alc/alc.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index a508fdca..00757842 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2127,6 +2127,9 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
device->handleDisconnect("%s", e.what());
return ALC_INVALID_DEVICE;
}
+ TRACE("Post-start: %s, %s, %uhz, %u / %u buffer\n",
+ DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType),
+ device->Frequency, device->UpdateSize, device->BufferSize);
}
return ALC_NO_ERROR;
@@ -3725,7 +3728,11 @@ START_API_FUNC
ERR("%s\n", e.what());
dev->handleDisconnect("%s", e.what());
alcSetError(dev.get(), ALC_INVALID_DEVICE);
+ return;
}
+ TRACE("Post-resume: %s, %s, %uhz, %u / %u buffer\n",
+ DevFmtChannelsString(device->FmtChans), DevFmtTypeString(device->FmtType),
+ device->Frequency, device->UpdateSize, device->BufferSize);
}
END_API_FUNC