From 8d5c715ec296b9c1c9f6c4f55c454407cde02760 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 28 Oct 2017 12:56:01 +1000 Subject: [PATCH] Fix examples. --- examples/simple_capture.c | 2 +- examples/simple_enumeration.c | 2 +- examples/simple_playback.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/simple_capture.c b/examples/simple_capture.c index 4ec78b5e..4f4b26d5 100644 --- a/examples/simple_capture.c +++ b/examples/simple_capture.c @@ -48,7 +48,7 @@ mal_uint32 on_send_frames(mal_device* pDevice, mal_uint32 frameCount, void* pSam int main() { mal_context context; - if (mal_context_init(NULL, 0, &context) != MAL_SUCCESS) { + if (mal_context_init(NULL, 0, NULL, &context) != MAL_SUCCESS) { printf("Failed to initialize context."); return -1; } diff --git a/examples/simple_enumeration.c b/examples/simple_enumeration.c index 79db0cdd..51f61390 100644 --- a/examples/simple_enumeration.c +++ b/examples/simple_enumeration.c @@ -12,7 +12,7 @@ int main(int argc, char** argv) (void)argv; mal_context context; - if (mal_context_init(NULL, 0, &context) != MAL_SUCCESS) { + if (mal_context_init(NULL, 0, NULL, &context) != MAL_SUCCESS) { printf("Failed to initialize context."); return -2; } diff --git a/examples/simple_playback.c b/examples/simple_playback.c index 38791a68..f41489e4 100644 --- a/examples/simple_playback.c +++ b/examples/simple_playback.c @@ -31,7 +31,7 @@ int main(int argc, char** argv) } mal_context context; - if (mal_context_init(NULL, 0, &context) != MAL_SUCCESS) { + if (mal_context_init(NULL, 0, NULL, &context) != MAL_SUCCESS) { printf("Failed to initialize context."); drwav_uninit(&wav); return -3;