search for: pcm_tell

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

2003 Jan 23
3
Exact decode positioning
Hi, I'm busy working on a method of synchronising playback between two ogg decoders. To do this reliably, I need to create a cross-reference of the raw & pcm offsets in the bitstream. I have tried using the ov_raw/pcm_tell calls, but it appears as if the ov_raw_tell() only updates itsself in steps of 4096 bytes (as each read callback is done). This gives me a cross-reference every 120ms or so, which isn't quite often enough for my application. Is there anyway of finding the codec's position in the raw s...
2001 Nov 22
14
Small vorbis files with vorbisfile
...oing something stupid. The files are short audio effects for a game (embedded in our own data format). Sample info: Vorbis packets: 1 (4 kb) Samples: 28672 Samplerate: 22 kHz Channels: 2 This is what I''m doing when I want to get a number of bytes from the stream: The problem is that ov_pcm_tell always returns 0. And so does ov_read (its only one packet so EOF) virtual bool GetData(void *&_pData, int &_nBytes) { int NumTimesNoData = 0; while(_nBytes) { long ret;...