Displaying 12 results from an estimated 12 matches for "m_decoder".
2005 Sep 30
2
Reg. FLAC decoding
I'm using seekable_stream_decoder, And., this is my write_callback. I'm
not getting the required output. The PCM i get is not the proper music.
Am I doing something wrong here?
FLAC__StreamDecoderWriteStatus
AFLACStreamPlayer::StreamWriteCb (
const FLAC__SeekableStreamDecoder *decoder,
const FLAC__Frame *frame,
const FLAC_...
2012 Dec 18
2
multi stream decode
Hi,
I don't understand how works the multi stream api in opus.
I need to send two mono streams over network with RTP.
I think I'm right when I create an OpusMsDecoder with
opus_multistream_decoder_create (48000, 2, 2 ,0 ,mapping, NULL)
where mapping is: unsigned char mapping[2] = {0,1} isn't it ?
Next, i need to encode data which I get from jack (float) so I use
opus_multistream_encode_float(enc, data, 480 , encodedData, MAX_DATA)
Then I send it using RTP.
My question is how can I m...
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.
>...
2005 Sep 30
0
Re: Reg. FLAC decoding
...der.sample_rate
bits_per_sample = frame->header.bits_per_sample
c.f. http://flac.sourceforge.net/api/structFLAC____FrameHeader.html
let me know if this works or if you have other questions.
Josh
--- Joe Steeve <joesteeve@zodiactorp.com> wrote:
>
> I'm using seekable_stream_decoder, And., this is my write_callback.
> I'm
> not getting the required output. The PCM i get is not the proper
> music.
> Am I doing something wrong here?
>
> FLAC__StreamDecoderWriteStatus
> AFLACStreamPlayer::StreamWriteCb (
> const FLAC__SeekableStreamDecoder *decoder,...
2007 Apr 18
3
Problems with the Speex Jitter Buffer
...nit()
{
m_JitterBuffer = jitter_buffer_init(m_Ticks);
jitter_buffer_reset(m_JitterBuffer);
}
Exit()
{
jitter_buffer_destroy(m_JitterBuffer);
}
void BeatJitterBuffer::AddPacket(Packet* packet)
{
m_Mutex.Aquire();
char buff[320];
JitterBufferPacket p;
m_Decoder->DecompressPacket(packet, buff, 320);
p.data = buff;
p.len = 320;
p.timestamp = packet->SequenceNumber() * m_Ticks;
p.span = m_Ticks;
jitter_buffer_put(m_JitterBuffer, &p);
}
m_Mutex.Release();
delete packet;
}
void BeatJitterBuffer::...
2013 Jul 01
2
About Decode Streaming
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're right.
I will check it and write result in this thread.
Thanks for help.
2013/7/1 Martijn van Beurden <mvanb1 at gmail.com>
> I'll top-post this one because it wasn't sent...
2007 Apr 20
2
Problems with the Speex Jitter Buffer
...}
>>
>> Exit()
>> {
>> jitter_buffer_destroy(m_JitterBuffer);
>> }
>>
>> void BeatJitterBuffer::AddPacket(Packet* packet)
>> {
>> m_Mutex.Aquire();
>> char buff[320];
>> JitterBufferPacket p;
>> m_Decoder->DecompressPacket(packet, buff, 320);
>> p.data = buff;
>> p.len = 320;
>> p.timestamp = packet->SequenceNumber() * m_Ticks;
>> p.span = m_Ticks;
>> jitter_buffer_put(m_JitterBuffer, &p);
>> }
>>
>> m...
2013 Jul 02
0
About Decode Streaming
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, NULL, decoderWriteCallback, NULL, decoderErrorCallback,
input_pile_array);*
*
*
Then, callbacks
*
*
/// \brief read callback function of decoder
FLAC__StreamDecoderReadStatus decoderReadCallback(const FLAC__StreamDecoder
*decoder,
FLAC...
2007 Apr 20
0
Problems with the Speex Jitter Buffer
...jitter_buffer_reset(m_JitterBuffer);
> }
>
> Exit()
> {
> jitter_buffer_destroy(m_JitterBuffer);
> }
>
> void BeatJitterBuffer::AddPacket(Packet* packet)
> {
> m_Mutex.Aquire();
> char buff[320];
> JitterBufferPacket p;
> m_Decoder->DecompressPacket(packet, buff, 320);
> p.data = buff;
> p.len = 320;
> p.timestamp = packet->SequenceNumber() * m_Ticks;
> p.span = m_Ticks;
> jitter_buffer_put(m_JitterBuffer, &p);
> }
>
> m_Mutex.Release();
> delet...
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 ?
There is always metadata in a FLAC stream, for example, the samplerate,
number of channels used, FLAC encoder version etc. This is called the
STRE...
2007 Apr 20
0
Problems with the Speex Jitter Buffer
...{
>>> jitter_buffer_destroy(m_JitterBuffer);
>>> }
>>>
>>> void BeatJitterBuffer::AddPacket(Packet* packet)
>>> {
>>> m_Mutex.Aquire();
>>> char buff[320];
>>> JitterBufferPacket p;
>>> m_Decoder->DecompressPacket(packet, buff, 320);
>>> p.data = buff;
>>> p.len = 320;
>>> p.timestamp = packet->SequenceNumber() * m_Ticks;
>>> p.span = m_Ticks;
>>> jitter_buffer_put(m_JitterBuffer, &p);
>>>...
2013 Jul 02
3
About Decode Streaming
...cess 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 error ?
>
>
> There is always metadata in a FLAC stream, for example, the samplerate,
> number of channels used, FLAC encoder version etc. This...