Update docs and add support for backend-specific userdata for decoders.

This commit is contained in:
David Reid
2024-03-01 07:06:54 +10:00
parent 2eb6f4eda2
commit 61ec4b17c6
2 changed files with 81 additions and 41 deletions
-1
View File
@@ -83,7 +83,6 @@ int main(int argc, char** argv)
/* Initialize the decoder. */
decoderConfig = ma_decoder_config_init_default();
decoderConfig.pBackendUserData = NULL; /* None of our decoders require user data, so this can be set to null. */
decoderConfig.ppBackendVTables = pBackendVTables;
decoderConfig.backendCount = sizeof(pBackendVTables) / sizeof(pBackendVTables[0]);