Displaying 1 result from an estimated 1 matches for "streamdecoder".
Did you mean:
stream_decoder
2017 Nov 22
0
libFLAC JNA Issue
...this update after this step.
Note : when error_callback is called, I update client_data sent in
parameter, well received updated by native code stored in decoder
variable.
The only thing is missing to me, is a function to return client_data from
decoder.
This simple patch do the job for me :
StreamDecoder.h :
FLAC_API void *get_client_data_from_decoder(FLAC__StreamDecoder *decoder);
StreamDecoder.c :
void *get_client_data_from_decoder(FLAC__StreamDecoder *decoder) {
return decoder->private_->client_data;
}
I finally can use this function after
FLAC__stream_decoder_process_until_end_...