mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix example.
This commit is contained in:
@@ -184,7 +184,7 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
|
|||||||
return;
|
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;
|
(void)pInput;
|
||||||
}
|
}
|
||||||
@@ -229,6 +229,8 @@ int main(int argc, char** argv)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ma_data_source_set_looping(&decoder, MA_TRUE);
|
||||||
|
|
||||||
|
|
||||||
/* Initialize the device. */
|
/* Initialize the device. */
|
||||||
result = ma_data_source_get_data_format(&decoder, &format, &channels, &sampleRate, NULL, 0);
|
result = ma_data_source_get_data_format(&decoder, &format, &channels, &sampleRate, NULL, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user