search for: io_readwrite

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

2004 Sep 10
2
FLAC++ SeekableStream write_callback not being called?
...K3bFLACDecoder::Private::write_callback(const ::FLAC__Frame *frame, const FLAC__int32 * const buffer[]) { int i; // Note that in canDecode we made sure that the input is only 16 bit stereo. int samples = frame->header.blocksize; internalBuffer = new QBuffer(); internalBuffer->open(IO_ReadWrite); for(i=0; i < samples; i++) { internalBuffer->putch(buffer[i][0] >> 8); // msb left internalBuffer->putch(buffer[i][0] & 0xFF); // lsb left internalBuffer->putch(buffer[i][1] >> 8); // msb right internalBuffer->putch(buffer[i][1] & 0xFF); // lsb...
2004 Sep 10
0
FLAC++ SeekableStream write_callback not being called?
...::FLAC__Frame *frame, > const > FLAC__int32 * const buffer[]) { > int i; > // Note that in canDecode we made sure that the input is only 16 > bit stereo. > int samples = frame->header.blocksize; > > internalBuffer = new QBuffer(); > internalBuffer->open(IO_ReadWrite); > for(i=0; i < samples; i++) { > internalBuffer->putch(buffer[i][0] >> 8); // msb left > internalBuffer->putch(buffer[i][0] & 0xFF); // lsb left > internalBuffer->putch(buffer[i][1] >> 8); // msb right > internalBuffer->putch(buffer[...