19 #include <wavpack/wavpack.h>
30 #define WV_DEFAULT_BLOCK_SIZE 32768
61 WavpackGetErrorMessage(s->
wv));
68 ret = WavpackFlushSamples(s->
wv);
71 WavpackGetErrorMessage(s->
wv));
104 memcpy(s->
pkt->
data + offset, data, count);
114 WavpackConfig
config = { 0 };
126 config.bytes_per_sample = 4;
127 config.bits_per_sample = 32;
130 config.num_channels = avctx->
channels;
135 config.flags |= CONFIG_VERY_HIGH_FLAG;
148 config.flags |= CONFIG_HIGH_FLAG;
150 config.flags |= CONFIG_FAST_FLAG;
153 ret = WavpackSetConfiguration(s->
wv, &config, -1);
157 ret = WavpackPackInit(s->
wv);
167 WavpackGetErrorMessage(s->
wv));
168 WavpackCloseFile(s->
wv);
176 WavpackCloseFile(s->
wv);
184 .
name =
"libwavpack",