Thank you so much for polite help Martijn. Allison,
My read callback function is just ; * /// \brief read callback function of decoder* * FLAC__StreamDecoderReadStatus decoderReadCallback( const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *callback_param)* * {* * // mutex lock* * m_mutex.lock();* * * * // copy buffer array to m_pile_array* * if(input_pile_size > 0) {* * memcpy(input_pile_array, buffer, input_pile_size);* * *bytes = input_pile_size;// = 0;* * * * // mutex unlock* * m_mutex.unlock();* * * * return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;* * }* * * * // mutex unlock* * m_mutex.unlock();* * * * return FLAC__STREAM_DECODER_READ_STATUS_ABORT;* * }* * * input_pile_array is encoded audio data from network, input_pile_size is size of encoded data size. Both of them are transmitted over network from client to server. I haven't known that I should increment buffer pointer, I have always write data at beginning of buffer. I think, error arise from increment?
_______________________________________________ flac-dev mailing list flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev