[vorbis-dev] Skipping with vorbisfile playback using DirectSound

Ryan Wellman firestar at eskimo.com
Wed Sep 11 13:54:13 PDT 2002



We currently use a 96k buffer (3 x 32k).  It was twice that, but I decided
I was being much too paranoid. :)  We have the decoding running in its own
thread using DSBCAPS_CTRLPOSITIONNOTIFY notify.  Also we had to specify it
as a software sound buffer, since on some hardware an event would trigger
any time that any sound started.

Of course this might be getting a little off topic.  If it's decided that
it is, I'll be more than happy to answer any further questions by e-mail.
It sounds that you're setting up something very similar to what I was.
(I might add, mine was also for a game.)

<p>On Wed, 11 Sep 2002, Borut Pfeifer wrote:
> I'm ahead of you on that one - I already use DSBCAPS_GETCURRENTPOSITION2
> (although the possibility exists that I'm writing to the wrong place when
> streaming in .ogg files, but not .wavs, which I will look into).  What size
> buffer did you use?
>
>    Borut
>
> ----- Original Message -----
> From: "Ryan Wellman" <firestar at eskimo.com>
> To: <vorbis-dev at xiph.org>
> Sent: Tuesday, September 10, 2002 9:11 PM
> Subject: Re: [vorbis-dev] Skipping with vorbisfile playback using
> DirectSound
>
>
> > When I first tried implementing something like this I had a similar
> > problem (some sound cards it would happen with more than others).  In any
> > case it came down to the fact that play cursor was getting reported in odd
> > (and highly inaccurate) locations.  Adding the following flags when
> > creating the bufferdesc DSBCAPS_GETCURRENTPOSITION2 moved it closer to
> > where I was expecting it.  Although we did end up dividing our buffer into
> > thirds just to be safe. :)
> >
> > Ryan

--- >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