Re: Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET



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().
.



Relevant Pages

  • Re: On the relationship between teaching and virtuosity
    ... some of the us at the 50 repetitions per segment play quite ... twitch" and the third is a "fast twitch" type. ... But it is clear to me that some students can immediately play with great, ...
    (rec.music.classical.guitar)
  • Re: On the relationship between teaching and virtuosity
    ... evidence that says you cannot build any type of muscle fiber you want so ... But it is clear to me that some students can immediately play with great, ... Do the segment exactly the same way every time. ...
    (rec.music.classical.guitar)
  • Re: Error OXCOOD106A
    ... When going to the interactive menu, it's the segment of "byte this" We used to be able to access it, but recently we haven't been able to open it. ... > That menas that you're trying to play an invalid ASX file. ... > Following up to your post with the resolution is good netiquette. ...
    (microsoft.public.windowsmedia.player)
  • Re: Playing & re-playing 7 .wav files
    ... Please post a question in a DOTNET group asking how to play a file and wait ... until it is finished before playing the next one. ... I thought I should use this segment of code to get this thing done: ... But when I run the application, it ONLY plays the last .wav file ...
    (microsoft.public.vb.general.discussion)
  • Correlating SecondaryBuffer PlayCursor Position and Time in VB.NET
    ... PlayCursor at a specific time in a SecondaryBuffer. ... contains segments of audio that I want to play in varying sequence, ... Stopthe player and move the PlayCursor to the next segment. ... milliseconds and knowing the properties of the wav file. ...
    (microsoft.public.win32.programmer.directx.audio)