Commit fc3a2fca authored by David Reid's avatar David Reid

Add explicit mention to not call some APIs in callbacks.

parent d289e5cf
......@@ -2788,6 +2788,8 @@ Uninitializes a device.
This will explicitly stop the device. You do not need to call ma_device_stop() beforehand, but it's
harmless if you do.
Do not call this in any callback.
Return Value:
MA_SUCCESS if successful; any other error code otherwise.
......@@ -2816,6 +2818,8 @@ to be done _before_ the device begins playback.
This API waits until the backend device has been started for real by the worker thread. It also
waits on a mutex for thread-safety.
Do not call this in any callback.
Return Value:
MA_SUCCESS if successful; any other error code otherwise.
......@@ -2837,6 +2841,8 @@ the resuming it with ma_device_start() (which you might do when your program los
in a situation where those samples are never output to the speakers or received from the microphone
which can in turn result in de-syncs.
Do not call this in any callback.
Return Value:
MA_SUCCESS if successful; any other error code otherwise.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment