Commit 4b23beb1 authored by David Reid's avatar David Reid

Fix example from recent API change.

parent f1892807
...@@ -166,7 +166,7 @@ int main(int argc, char** argv) ...@@ -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) {
......
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