From 4b23beb1f0634cd2460bce89389ba8951d7a6bdc Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 23 Jun 2020 20:29:20 +1000 Subject: [PATCH] Fix example from recent API change. --- examples/simple_mixing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple_mixing.c b/examples/simple_mixing.c index 56f979c0..71055f41 100644 --- a/examples/simple_mixing.c +++ b/examples/simple_mixing.c @@ -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 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. */ if (ma_device_start(&device) != MA_SUCCESS) {