aboutsummaryrefslogtreecommitdiffstats
path: root/alc/context.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-12 20:10:47 -0800
committerChris Robinson <[email protected]>2023-12-12 20:10:47 -0800
commitc7774aa488961e0af2895008fb0063fb790b0a58 (patch)
tree8579a6813db24e03a49e89e21f7e373874006868 /alc/context.h
parentbdd54018f3dd63a9591fae8b7a21a71e8adc3ddb (diff)
Track the device state for being properly configured
And don't allow resuming if the backend device isn't properly set up.
Diffstat (limited to 'alc/context.h')
-rw-r--r--alc/context.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/context.h b/alc/context.h
index 32db76c7..d923e46e 100644
--- a/alc/context.h
+++ b/alc/context.h
@@ -158,10 +158,10 @@ struct ALCcontext : public al::intrusive_ref<ALCcontext>, ContextBase {
void init();
/**
* Removes the context from its device and removes it from being current on
- * the running thread or globally. Returns true if other contexts still
- * exist on the device.
+ * the running thread or globally. Stops device playback if this was the
+ * last context on its device.
*/
- bool deinit();
+ void deinit();
/**
* Defers/suspends updates for the given context's listener and sources.