18 #define MINIAUDIO_IMPLEMENTATION
19 #include "../../miniaudio.h"
20 #include "../miniaudio_engine.h"
49 while (totalFramesRead < frameCount) {
51 ma_uint64 framesToRead = frameCount - totalFramesRead;
52 if (framesToRead > tempCapInFrames) {
53 framesToRead = tempCapInFrames;
59 totalFramesRead += framesJustRead;
91 if (pFramesRead !=
NULL) {
95 if (pDataSource ==
NULL) {
105 while (totalFramesRead < frameCount) {
109 ma_uint64 framesToRead = frameCount - totalFramesRead;
110 if (framesToRead > tempCapInFrames) {
111 framesToRead = tempCapInFrames;
117 totalFramesRead += framesJustRead;
124 if (pFramesRead !=
NULL) {
125 *pFramesRead = totalFramesRead;
177 printf(
"CUSTOM JOB THREAD TERMINATING VIA MA_CANCELLED... ");
196 printf(
"CUSTOM JOB THREAD TERMINATING VIA MA_JOB_QUIT... ");
201 printf(
"PROCESSING IN CUSTOM JOB THREAD: %d\n", job.
toc.
breakup.code);
205 printf(
"TERMINATED\n");
226 printf(
"Failed to initialize device.");
235 printf(
"Failed to start device.");
261 printf(
"Failed to initialize the resource manager.");
288 printf(
"Press Enter to quit...");