Fix example from recent API change.

This commit is contained in:
David Reid
2020-06-23 20:29:20 +10:00
parent f189280766
commit 4b23beb1f0
+1 -1
View File
@@ -166,7 +166,7 @@ int main(int argc, char** argv)
needs to be done before starting the device. We need a context to initialize the event, which we can get from the device. Alternatively you can initialize needs to be done before starting the device. We need a context to initialize the event, which we can get from the device. Alternatively you can initialize
a context separately, but we don't need to do that for this example. a context separately, but we don't need to do that for this example.
*/ */
ma_event_init(device.pContext, &g_stopEvent); ma_event_init(&g_stopEvent);
/* Now we start playback and wait for the audio thread to tell us to stop. */ /* Now we start playback and wait for the audio thread to tell us to stop. */
if (ma_device_start(&device) != MA_SUCCESS) { if (ma_device_start(&device) != MA_SUCCESS) {