Commit 9589a62f authored by David Reid's avatar David Reid

Fix example.

parent 252de0f0
......@@ -184,7 +184,7 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
return;
}
ma_data_source_read_pcm_frames(pDataSource, pOutput, frameCount, NULL, MA_TRUE);
ma_data_source_read_pcm_frames(pDataSource, pOutput, frameCount, NULL);
(void)pInput;
}
......@@ -229,6 +229,8 @@ int main(int argc, char** argv)
return -1;
}
ma_data_source_set_looping(&decoder, MA_TRUE);
/* Initialize the device. */
result = ma_data_source_get_data_format(&decoder, &format, &channels, &sampleRate, NULL, 0);
......
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