Displaying 8 results from an estimated 8 matches for "zkablan".
2013 Jul 01
2
About Decode Streaming
...PC when a block
> is finished, so the decoding process can be sure there is a full block in
> the buffer.
>
> Oh, and you might take a look at the reading callback, maybe that one is
> overreading the buffer?
>
> I hope that helps.
>
>
> On 01-07-13 17:51, Burak Or?un ?zkablan wrote:
>
> Martijn,
>
> I encode a one second captured audio data in my PC and send it to other
> PC as encoded. This is OK.
> I want to decode data in other PC and play it but when I am decoding data
> with decoder stream function, exception throws.
>
>
> 2013/7/1 Bu...
2013 Jul 02
2
About Decode Streaming
Martijn,
I don't use any metadata when encoding and decoding. When I call
*FLAC__StreamDecoderStateString[FLAC__stream_decoder_get_state(m_decoder)] *
*
*
it returns
FLAC__STREAM_DECODER_SEARCH_FOR_METADATA
enum value. Is it an error ?
2013/7/2 Burak Or?un ?zkablan <borcunozkablan at gmail.com>
> Hi again,
>
> I can not solve problem. I want to mention my source code, so you may
> answer easily.
>
> This is decoder init stream function.
>
> *FLAC__stream_decoder_init_stream(m_decoder, decoderReadCallback, NULL,
> NULL, NULL,...
2013 Jul 01
3
About Decode Streaming
...streaming encode / decode over network in real-time, code throws LOST_SYNC
exception and only reading callback runs not writing callback after
exception.
How can I solve sync problem over network? Is it possible over network or
does FLAC stream with file?
Best Regards,
Orcun.
--
Burak Or?un ?ZKABLAN
Computer Science Engineer
Mobile : 0 541 302 18 78
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20130701/d4f69d3d/attachment.htm
2013 Jul 02
0
About Decode Streaming
...r, input_pile_size);*
* input_pile_size = 0;*
*
*
*
*
* return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;*
*}*
*
*
*return FLAC__STREAM_DECODER_READ_STATUS_ABORT;*
*
*
and I wait for calling write callback but program throws LOST_SYNC
exception. I don't know what causes.
2013/7/1 Burak Or?un ?zkablan <borcunozkablan at gmail.com>
> Sorry, I am newbie.
>
> Sample codes are from
> https://github.com/oneman/libflac/tree/master/examples/cpp.
> I used FLAC__stream_decoder_process_single function but it still gives
> exception. Maybe I could not control read callback, you...
2013 Jul 01
0
About Decode Streaming
...or let the encoding PC
signal the decoding PC when a block is finished, so the decoding process
can be sure there is a full block in the buffer.
Oh, and you might take a look at the reading callback, maybe that one is
overreading the buffer?
I hope that helps.
On 01-07-13 17:51, Burak Or?un ?zkablan wrote:
> Martijn,
>
> I encode a one second captured audio data in my PC and send it to
> other PC as encoded. This is OK.
> I want to decode data in other PC and play it but when I am decoding
> data with decoder stream function, exception throws.
>
>
> 2013/7/1 Burak...
2013 Jul 02
3
About Decode Streaming
...has transmitted at
every time. I suspend that sync problem occurs from network latency.
Do you have any idea about this? If read callback may sleep or process more
than excepted time, does sync lost?
2013/7/2 Martijn van Beurden <mvanb1 at gmail.com>
> On 02-07-13 11:01, Burak Or?un ?zkablan wrote:
>
> I don't use any metadata when encoding and decoding. When I call
>
> *
> FLAC__StreamDecoderStateString[FLAC__stream_decoder_get_state(m_decoder)]
> *
> *
> *
> it returns
>
> FLAC__STREAM_DECODER_SEARCH_FOR_METADATA
>
> enum value. Is it an...
2013 Jul 02
0
About Decode Streaming
On 02-07-13 11:01, Burak Or?un ?zkablan wrote:
> I don't use any metadata when encoding and decoding. When I call
>
> *FLAC__StreamDecoderStateString[FLAC__stream_decoder_get_state(m_decoder)]
> *
> *
> *
> it returns
>
> FLAC__STREAM_DECODER_SEARCH_FOR_METADATA
>
> enum value. Is it an error ?
Ther...
2013 Jul 02
2
About Decode Streaming
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)