Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Can WavPack handle memory stream data? (Read 5381 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Can WavPack handle memory stream data?

I couldn't find any specific instruction in the lib_use.txt about how to handle memory stream data. I would like to know if the library supports memory streams. Thanks.

Can WavPack handle memory stream data?

Reply #1
Yes, memory streams are supported.

For decoding WavPack files, use the WavpackOpenFileInputEx() function. The callback functions provided by the WavpackStreamReader can get the WavPack data from anywhere (and they don't have to implement "seek" unless you want to be able to seek in the audio playback).

For encoding WavPack files, you again provide a callback function that will accept the completed WavPack blocks and can do with the data whatever it wants.

Hope this is what you were after... 

 

Can WavPack handle memory stream data?

Reply #2
Yes, memory streams are supported.

For decoding WavPack files, use the WavpackOpenFileInputEx() function. The callback functions provided by the WavpackStreamReader can get the WavPack data from anywhere (and they don't have to implement "seek" unless you want to be able to seek in the audio playback).

For encoding WavPack files, you again provide a callback function that will accept the completed WavPack blocks and can do with the data whatever it wants.

Hope this is what you were after... 

Thanks you for the swift reply. I'll experimenting around and come back if I got more questions.