search for: pointer_to_anyth

Displaying 2 results from an estimated 2 matches for "pointer_to_anyth".

2013 Feb 09
2
Newbie question about those callbacks
For instance the write_callback thing: client_data ? can it be a pointer to just about anything? For instance a pointer to a two-dimensional array? Are those FLAC-WAV and WAV-FLAC examples the only examples available? What would be the best approach to read a FLAC file to an array of some kind? Passing a pointer to the array as ?client_data?? I'd like to use a two-dimensional array, but
2013 Feb 10
0
Newbie question about those callbacks
...WriteStatus (* FLAC__StreamDecoderWriteCallback) (const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame , const FLAC__int32 *const buffer[], void *client_data) Yes, client_data can point at anything. You the callee are responsible to cast your pointer_to_anything to and from 'void*' > For instance a pointer to a two-dimensional array? Yes. They can even be NULL. Whatever pointer you pass as the client_data parameter in the finction FLAC__stream_decoder_init_stream () will be passed back to you in the callbacks client_data. > Are those F...