Help - Search - Members - Calendar
Full Version: Can WavPack handle memory stream data?
Hydrogenaudio Forums > Lossless Audio Compression > WavPack
siyi
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
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... smile.gif
siyi
QUOTE (bryant @ Aug 11 2008, 21:27) *
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... smile.gif

Thanks you for the swift reply. I'll experimenting around and come back if I got more questions. tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.