-
|
This seems like an simple question, but I can not find the answer ... For an audio output call back .. (from the examples) .. void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uint32 frameCount) I want to append directly to "void *pOutput". Do I always need to append a full "frameCount"? thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
I found the following in the miniaudio.h ... Is the ma_device_config documented somewhere in https://miniaud.io/docs/manual/index.html?? Thanks!
|
Beta Was this translation helpful? Give feedback.
-
|
From line 6411 in miniaudi.h I assume the period has some affect on the amount of buffer allocated?? frameCount (in) from line 6629 in miniaudio.h "struct ma_device_config" ... shows the fields of this structure. |
Beta Was this translation helpful? Give feedback.
-
|
You don't append to The data type is the format you configured your device with: If you used |
Beta Was this translation helpful? Give feedback.
-
|
I assume the correct approach is to:
Is this correct?? Thanks! |
Beta Was this translation helpful? Give feedback.
I assume the correct approach is to:
to the amount of buffering desired.
(this will result in silence at the beginning of the stream)
(otherwise the source is falling behind the player .. and will inject silence)
Is this correct??
Thanks!