[vorbis-dev] Playing Problems :(
Caryfuk
sim22um at axpsu.fpf.slu.cz
Wed Mar 14 02:44:58 PST 2001
Hi all!
I've problem with playing ogg files. I'm triing to use tripple buffer
method:
+-------------+
+-| buffer 1 |-+
| +-------------+ |
| |
| +-------------+-+
| | buffer 2 |
| +-------------+-+
| |
| +-------------+-+
+-| buffer 3 |
+-------------+
First i fill all buffest with ov_read. Then I start to play firts buffer.
When i stops I'll start to play second buffer and fill firts buffer with
ov_read. Buffer setting are:
p_oggB->wfx.wFormatTag = WAVE_FORMAT_PCM;
p_oggB->wfx.nChannels = oggstruct.vi->channels;
p_oggB->wfx.nSamplesPerSec = (unsigned long) oggstruct.vi->rate;
p_oggB->wfx.wBitsPerSample = 16;
p_oggB->wfx.nBlockAlign = (oggstruct.vi->channels *
p_oggB->wfx.wBitsPerSample) / 8;
p_oggB->wfx.nAvgBytesPerSec = (unsigned long)
(p_oggB->wfx.nSamplesPerSec * p_oggB->wfx.nBlockAlign);
p_oggB->wfx.cbSize = 0;
Could someone send me source code, how he is playing ogg file, or give me
some hint? Thanks a lot!
Michal Simonik
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev
mailing list