Displaying 4 results from an estimated 4 matches for "audiodecoderspeex".
2010 Apr 10
2
Is Speex 1.0 and >=1.1 compatible?
...speex_bits_write(&bits, output_buf, nbytes);
writeEncodedSamples(output_buf, nbytes);
speex_bits_reset(&bits);
frame_cnt = 0;
}
}
}
return count;
} /* AudioEncoderSpeex::writeSamples */
The decoder have looked like this for quite a while:
void AudioDecoderSpeex::writeEncodedSamples(void *buf, int size)
{
char *ptr = (char *)buf;
speex_bits_read_from(&bits, ptr, size);
float samples[frame_size];
#if SPEEX_MAJOR > 1 || (SPEEX_MAJOR == 1 && SPEEX_MINOR >= 1)
while (speex_decode(dec_state, &bits, samples) == 0)
#else
while ((s...
2010 Apr 11
2
Is Speex 1.0 and >=1.1 compatible?
...r as I can see, the termination handling is not compatible when encoding
with, in this case, Speex ver 1.2rc1 and decoding with ver 1.0.5. Do you agree
or have I done something wrong in my code? The full code can be found here:
http://svxlink.svn.sf.net/viewvc/svxlink/trunk/src/async/audio/AsyncAudioDecoderSpeex.cpp?view=markup
http://svxlink.svn.sf.net/viewvc/svxlink/trunk/src/async/audio/AsyncAudioEncoderSpeex.cpp?view=markup
I guess I could solve this problem by transmitting the frame count out-of-band
but if Speex can handle it, it's better.
Regards,
Tobias
>
> Jean-Marc
>
> On...
2010 Apr 10
0
Is Speex 1.0 and >=1.1 compatible?
...mples(output_buf, nbytes);
> speex_bits_reset(&bits);
> frame_cnt = 0;
> }
> }
> }
>
> return count;
>
> } /* AudioEncoderSpeex::writeSamples */
>
>
>
> The decoder have looked like this for quite a while:
>
> void AudioDecoderSpeex::writeEncodedSamples(void *buf, int size)
> {
> char *ptr = (char *)buf;
>
> speex_bits_read_from(&bits, ptr, size);
> float samples[frame_size];
> #if SPEEX_MAJOR> 1 || (SPEEX_MAJOR == 1&& SPEEX_MINOR>= 1)
> while (speex_decode(dec_state,&bi...
2010 Apr 11
0
Is Speex 1.0 and >=1.1 compatible?
...he termination handling is not compatible when encoding
> with, in this case, Speex ver 1.2rc1 and decoding with ver 1.0.5. Do you agree
> or have I done something wrong in my code? The full code can be found here:
>
> http://svxlink.svn.sf.net/viewvc/svxlink/trunk/src/async/audio/AsyncAudioDecoderSpeex.cpp?view=markup
> http://svxlink.svn.sf.net/viewvc/svxlink/trunk/src/async/audio/AsyncAudioEncoderSpeex.cpp?view=markup
>
> I guess I could solve this problem by transmitting the frame count out-of-band
> but if Speex can handle it, it's better.
>
> Regards,
> Tobias
>
&...