Commit 8d5c715e authored by David Reid's avatar David Reid

Fix examples.

parent 72d96e80
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
......
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