Welcome, Guest. Please login or register.

Author Topic: Strange audio output bug  (Read 2240 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MinuousTopic starter

Strange audio output bug
« 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!!!
 

Offline d0pefish

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 150
    • Show only replies by d0pefish
    • http://lavaburn.com
Re: Strange audio output bug
« Reply #1 on: August 27, 2006, 01:18:48 PM »
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.
 

Offline Tomas

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2828
    • Show only replies by Tomas
Re: Strange audio output bug
« Reply #2 on: August 27, 2006, 01:27:21 PM »
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.
 

Offline MinuousTopic starter

Re: Strange audio output bug
« Reply #3 on: August 27, 2006, 01:55:33 PM »
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...
 

Offline d0pefish

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 150
    • Show only replies by d0pefish
    • http://lavaburn.com
Re: Strange audio output bug
« Reply #4 on: August 28, 2006, 06:56:24 PM »
Quote
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