search for: current_sampl

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

Did you mean: current_sample
2004 Sep 10
2
Storing FLAC in Matroska
...;inputFile); return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE; }; FLAC__StreamDecoderWriteStatus flac_DecoderWriteCallback(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data) { flacData *ourData = (flacData *)client_data; for(int current_sample = 0; current_sample < frame->header.blocksize; current_sample++) { for(int channel = 0; channel < frame->header.channels; channel++) { fwrite((void *)&buffer[channel][current_sample], 1, 1, ourData->outputFile); } } return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;...
2004 Sep 10
2
Storing FLAC in Matroska
Hello, I'm looking into storing FLAC audio in Matroska and I have a few questions. 1. Can I use libflac to extract the compressed frames? Or will I need to write up a simple file parser? 2. What is required to decode the frames? From the docs I understand that you need the FRAME and you may need the METADATA_BLOCK. Thanks, Jory Stone jcsston@toughguy.net Matroska, the new,