HydrogenAudio

Lossless Audio Compression => WavPack => Topic started by: siyi on 2008-08-12 04:15:07

Title: Can WavPack handle memory stream data?
Post by: siyi on 2008-08-12 04:15:07
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.
Title: Can WavPack handle memory stream data?
Post by: bryant on 2008-08-12 05:27:09
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... 
Title: Can WavPack handle memory stream data?
Post by: siyi on 2008-08-12 08:30:43
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.