mackron / miniaudio

Audio playback and capture library written in C, in a single source file.
https://miniaud.io
Other
4.07k stars 361 forks source link

Multicast settings for streaming audio resources #627

Closed songguodongg closed 1 year ago

songguodongg commented 1 year ago

ma_resource_manager_data_source_init_copy:this method can copy new objects for non-stream-loaded data, and can be used to ensure that calls to different locations of the same audio data do not interfere with each other. If the loading method is stream loading, it cannot be copied with this method, can it only be reinitialized?

mackron commented 1 year ago

Yes, you need to use ma_resource_manager_data_source_init() for each instance of a streaming sound. You cannot use ma_resource_manager_data_source_init_copy() for streams.

Moving to discussions section.