Advertisement

play from stop position(pause) DirectX

Started by April 16, 2003 10:43 AM
1 comment, last by qals 21 years, 7 months ago
Hi, How would you go about playing a file stopping it and then playing it again from the position you stopped it at? Ive tried getting the performance time when the file is stopped and using this to set the position before it plays again. Don''t know if you can go backwards in performance time. getting the current position of the buffer when stopped doesn''t seem to work either. Cheers QALS
if you Stop() a directsound buffer it doesn''t rewind... just call Play again and it''ll continue.
Advertisement
LPDIRECTSOUNDBUFFER8->GetCurrentPosition(); and LPDIRECTSOUNDBUFFER8->SetCurrentPosition();

edit: fixed link

[edited by - crispy on April 21, 2003 3:52:35 PM]
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared

This topic is closed to new replies.

Advertisement