Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
285 user(s) are online (184 user(s) are browsing Forums)

Members: 0
Guests: 285

more...

Support us!

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 )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1
Pegasos2
X5000
X1000
A1222
Sam 440/460
Classic PowerPC Amiga
WinUAE emulation
Qemu emulation
Total Votes: 138
The poll will close at 2025/12/1 12:00
2 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project