search for: dsp_state

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

2000 Dec 08
1
voribs_analysis() question
...ock to a different processor, and let them call vorbis_analsis() in parallel with each other. However, as has been briefly alluded on this list before, there is global state that is shared between all vorbis_block instances. Specifically, vorbis_block contains a pointer to the stream's vorbis_dsp_state, which in turn, has a pointer to the stream's vorbis_info. The code under vorbis_analysis gets compilcated quickly (and I'm *not* a math/DSP kind of guy), but I can see that, at the very least, the global vorbis_dsp_state seems to be getting modified in each call to vorbis_analysis(). My...
2003 Sep 11
1
Flushing audio
...y, as soon as i capture it from the sound card. Currently i have the following (audio captured 16 bits, mono): void VorbisEncoder::encode(void *data, int r) { char *buf = (char *) data; int vals = r / 2; float **buffer = vorbis_analysis_buffer(&dsp_state, vals); for(int i=0;i<vals;i++){ buffer[0][i] = ((buf[i*2 + 1] << 8) | (0x00ff & (int) buf[i*2])) / 32768.f; } vorbis_analysis_wrote(&dsp_state, vals); while(vorbis_analysis_blockout...