Re: Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET
- From: "Chris P. [MVP]" <msdn@xxxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 12:08:28 -0400
On Mon, 18 Apr 2005 01:24:21 GMT, Chrisbot.com wrote:
> I am using VB.NET and DirectX9. I am trying to figure out how to place the
> PlayCursor at a specific time in a SecondaryBuffer. Using a wav file that
> contains segments of audio that I want to play in varying sequence, I intend
> to choose a segment and Play() it, when the PlayCursor = X then I will
> Stop() the player and move the PlayCursor to the next segment. I just need
> to know how to calculate X as a buffer byte position from time in
> milliseconds and knowing the properties of the wav file.
You can't force the play cursor position with a secondary buffer. You need
to rethink your design and copy the current segment that you want to play
into the current play cursor position and then call Play().
.
- Follow-Ups:
- Re: Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET
- From: Chrisbot.com
- Re: Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET
- References:
- Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET
- From: Chrisbot.com
- Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET
- Prev by Date: Re: directsound help
- Next by Date: Re: Enumurating Audio devices like DirectSound using DirectShow
- Previous by thread: Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET
- Next by thread: Re: Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET
- Index(es):
Relevant Pages
|