return ma_post_error(pDevice, MA_LOG_LEVEL_ERROR, "ma_device_start() called for an uninitialized device.", MA_DEVICE_NOT_INITIALIZED);
}
/*
Starting the device doesn't do anything in synchronous mode because in that case it's started automatically with
ma_device_write() and ma_device_read(). It's best to return an error so that the application can be aware that
it's not doing it right.
*/
if (!ma_device__is_async(pDevice)) {
return ma_post_error(pDevice, MA_LOG_LEVEL_ERROR, "ma_device_start() called in synchronous mode. This should only be used in asynchronous/callback mode.", MA_DEVICE_NOT_INITIALIZED);