Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Minuous on August 27, 2006, 07:45:28 AM
-
I'm updating my emulator, and have noticed a strange problem where the sound output cuts out for no apparent reason after a short amount of time. AFAICT the code is fully system-legal.
Inserting a Delay(1) seems to solve the problem for some reason, but that isn't a real solution as the emulator needs to be as fast as possible, and some of the sound effects do require rapid writes to the audio.device. It's odd because after the AbortIO() I'm doing a WaitIO().
I'm not sure if this is a WinUAE bug, a bug in my program, or a bug in the audio.device; those seem to be the three possibilities.
There doesn't seem to be a way to attach files to this message, so I have uploaded the files to my host, the URLs are:
http://www.deadwoodinc.net/amigan/test.c
for the source, and
http://www.deadwoodinc.net/amigan/test
for the executable.
Many thanks to anyone who can tell me what the !@#$ is going on!!!
-
I am running your test app on my Amiga 4000/060 + PPC 233, and I am hearing white noise through the speakers. I take it this is the intention of your app?
It hasn't stopped or cut out yet, so maybe it's a bug with WinUAE.
Hope that helps.
-
The sound emulation of winuae has never been perfect. It seems impossible to get the audio synced properly without audio skipping/dropping out. This is one of the main reasons i still use a real Amiga for classic gaming.
-
Yes, it's just random noise and tones, it's not supposed to sound good. But if you can hear *anything* then it's working.
Seems like a UAE bug from the sounds of it (forgive the pun :-) ), if this is true I will make a bug report for Toni Wilen...
-
This is one of the main reasons i still use a real Amiga for classic gaming.
Same here. I also do music work with my Amiga so the timing is important to me. Emulation has the noticable lag and it's difficult to work with.
Actually, most if not all the modern PC native MOD trackers have always had this slight delay between pressing a key and hearing the sound for me. It's ironic that even with all this DirectX and ASIO stuff on my PC, my old Amiga *STILL* has less lag (i.e. none) when jamming on ProTracker.
I love the Paula chip, even after all these years it's amazing what it can do. :-D