Skip to main content

Topic: Can WavPack handle memory stream data? (Read 4104 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • siyi
  • [*]
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.

  • bryant
  • [*][*][*][*][*]
  • Developer (Donating)
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... 

  • siyi
  • [*]
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.