Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
124 user(s) are online (69 user(s) are browsing Forums)

Members: 2
Guests: 122

skynet, beworld, more...

Headlines

 
  Register To Post  

AHI and dynamic samples (MAME sound)
Quite a regular
Quite a regular


See User information
Hi everybody,

I'm playing around with sound for my MAME port at the moment.

Can someone tell me please how to work out the current play pointer if the stream? I need to know where in my buffer to start putting my data.
Alternatively I could do it with double-buffered audio but I want to keep latency down to a minimum.

Is there good example source I can look at to see how this should be done?
Thanks!

--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my company's shop: http://www.mutant-caterpillar.co.uk/shop/ - specialising in Sinclair Spectrums but will be adding Amigas!
Go to top
Re: AHI and dynamic samples (MAME sound)
Quite a regular
Quite a regular


See User information
Do you have one huge buffer that is continuously playing, and you like to insert data at-position-'now' whenever there is data?

You could use double-buffer and always insert data in the middle, then you get half the latency, but risk missing the start of a sound :)

Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project