Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Gyannea

Direct Sound: Safe write versus read positions

This topic is 5357 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If one is Playing using Direct Sound, you can use the ->GetCurrentPosition(readposition, safewriteposition) to find where one can safely write data to the buffer. What is interesting to know is the difference ''safewriteposition - readposition'' ahead of time. It appears to be hardware dependendent. Does anyone know if this value changes? I want to know this value as for my application it is necessary to get as close as possible to the readposition to the time between signal synthesis and signal sending is as small as possible (ideally zero). It is even MORE important in the capture case. There is would be nice to be able to read the data as it arrives, or at least read the data right up to the current write position. THen the latency would be reduced to the time interval between reads. Brian Brian Reinhold

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!