Amiga.org

The "Not Quite Amiga but still computer related category" => Amiga Emulation => Topic started by: Ral-Clan on January 06, 2011, 06:09:16 PM

Title: Tips for getting low audio latency in UAE?
Post by: Ral-Clan on January 06, 2011, 06:09:16 PM
Hi, anyone have tips for getting low latency Paula audio in WinUAE.  This applies in regard to music composing software (such as trackers and MIDI).

I've had good luck getting OctaMED SoundStudio working under UAE.  But I have to set the Audio Buffer in UAE to 1 so that sounds are not delayed.  (so when I press a key on the keyboard to trigger a sample it is played instantly in OctaMED).  I've heard that in decreasing the audio buffer in UAE, it also increased load on the CPU.

Since I have an ASIO compatible sound card (low latency sound card).  I'm wondering if there are other tricks to decreasing Audio Latency. From what I've read online, UAE doesn't yet support ASIO audio drivers.  There was an experiment a few years ago with a plugin called "PortAudio" which was written by Tony Wilsen:

http://eab.abime.net/showthread.php?p=514884
http://www.amiga.org/forums/showthread.php?t=47887

I can't tell if PortAudio has been abandoned by Tony Wilsen...it seems to have been abandoned or is just a Beta not being updated.

There is also some discussion about setting the audio driver in UAE to WASAPI, which is supposed to be some type of low latency audio driver written by MicroSoft and which is part of Windows.  I've never used WASAPI drivers so I don't know.

http://eab.abime.net/showthread.php?t=45721

The only real audio latency issue I've noticed is in Bars & Pipes, when I turn on the internal Paula metronome "beeping/clicking".  It doesn't match the actual metronome as played through MIDI (i.e. when the metronome triggers a rimshot or click on an external MIDI sound module).  The Paula's click is slightly delayed from the actual beat.

MIDI timing is good from UAE, it's just the Paula delay that sometimes means you can't use internal Amiga sounds with external MIDI instruments.

Anyone doing music recording in WinUAE?
Title: Re: Tips for getting low audio latency in UAE?
Post by: Ral-Clan on January 07, 2011, 03:23:05 AM
I just wanted to report that I took the time to install the PortAudio plugin for WinUAE and for a while I was getting wonderful low-latency audio.

Next time I started the emulation though, things started going wonky....will have to play with this some more.
Title: Re: Tips for getting low audio latency in UAE?
Post by: Ral-Clan on January 07, 2011, 05:01:31 AM
Hmmm....well, PortAudio is a BIT touchy (once you've got it working don't play with ANY settings in UAE or your sound card while the emulation is running).  But when it IS running it does its job well....nice snappy low latency audio.  I ran tests on both Bars & Pipes and Dr. T's KCS for a few minutes each, both were set to generate a metronome click that triggered an internal Paula beep and a rimshot on an external MIDI tone module simulataneously for each beat of a bar.  Normally, under using Windows DirectDraw audio driver in UAE, there was noticable latency between the Paula beep and the external tone module rimshot even when the Audio Buffer was set to 1.  With the PortAudio plugin and the ASIO driver chosen, the two tones were in sync and simultaneous (no detectable latency delay).
Title: Re: Tips for getting low audio latency in UAE?
Post by: adolescent on January 07, 2011, 06:15:46 AM
Quote from: ral-clan;604366
written by Tony Wilsen


You mean Toni Wilen (i.e. the developer of WinUAE) :rtfm:.  Probably best to ask on EAB where Toni moderates a WinUAE support forum.
Title: Re: Tips for getting low audio latency in UAE?
Post by: Ral-Clan on January 07, 2011, 01:04:21 PM
Quote from: adolescent;604560
You mean Toni Wilen (i.e. the developer of WinUAE) :rtfm:.  Probably best to ask on EAB where Toni moderates a WinUAE support forum.


Yup, it is indeed Toni Wilen...sorry for the typo.  I have been e-mailing him privately about this and apparently he's uploaded a new version of PortAudio to the winuae site (just yesterday).

Also, I found out WASAPI support is only available to users of Windows Vista or later.
Title: Re: Tips for getting low audio latency in UAE?
Post by: TheGoose on January 07, 2011, 02:45:06 PM
"Tips for getting low audio latency in UAE?"

Don't use UAE, is the best way get that latency down to nothing.

;)
Title: Re: Tips for getting low audio latency in UAE?
Post by: Ral-Clan on January 07, 2011, 02:49:58 PM
Quote from: TheGoose;604609
"Tips for getting low audio latency in UAE?"

Don't use UAE, is the best way get that latency down to nothing.

;)


Yup I knew that comment would come sooner or later. ;)
Title: Re: Tips for getting low audio latency in UAE?
Post by: spihunter on January 07, 2011, 03:38:34 PM
TheGoose and I were just talking about this the other night. It seems no matter how fast your PC is, sound emulation on UAE will never be as good as a real Amiga. Something about the paula and custom chips makes switching samples and play back rock solid with Octamed.

Even the signal coming from the audio ports of a real Amiga are much hotter then any PC sound card I've ever used. when I run audio out of an A1200 into my USB tascam board on my Mac I never need any kind of pre-amp or signal booster. It's almost too hot!


Quote from: ral-clan;604610
Yup I knew that comment would come sooner or later. ;)
Title: Re: Tips for getting low audio latency in UAE?
Post by: Ral-Clan on January 07, 2011, 04:21:41 PM
Quote from: spihunter;604619
TheGoose and I were just talking about this the other night. It seems no matter how fast your PC is, sound emulation on UAE will never be as good as a real Amiga. Something about the paula and custom chips makes switching samples and play back rock solid with Octamed.


Hmmm....well, so far I haven't had any problem with OctaMED under emulation.  I haven't really stressed it with quickly switching samples or anything though....I generally use one or two samples per channel on a 4-track MED/MOD.  Could you elaborate on what you mean by the switching sample problems you've encountered?

Under UAE OctaMED has seemed pretty good sound wise.  When I'm done composing a song in it I use OctaMED SoundStudio's 16-bit file mixdown function - I did this on my real Amiga and now in UAE to render the final song to a 16-bit hard drive file.  So in the end I was not playing the output through Paula anyway.

But....I am keeping around several real Amigas for the day when/if I have unlimited space to set them up (right now it's just not possible!).  Then I suppose I could set up a dedicated A500 just for OctaMED.
Title: Re: Tips for getting low audio latency in UAE?
Post by: spihunter on January 07, 2011, 05:31:44 PM
I'm talking about when you use the numeric keypad to switch what current sample is active
that you can play on the keyboard. On a real 030/A1200 it's instant to the point where I can almost play it like a live instrument. Under UAE its seems to lag.




Quote from: ral-clan;604629
Hmmm....well, so far I haven't had any problem with OctaMED under emulation.  I haven't really stressed it with quickly switching samples or anything though....I generally use one or two samples per channel on a 4-track MED/MOD.  Could you elaborate on what you mean by the switching sample problems you've encountered?

Under UAE OctaMED has seemed pretty good sound wise.  When I'm done composing a song in it I use OctaMED SoundStudio's 16-bit file mixdown function - I did this on my real Amiga and now in UAE to render the final song to a 16-bit hard drive file.  So in the end I was not playing the output through Paula anyway.

But....I am keeping around several real Amigas for the day when/if I have unlimited space to set them up (right now it's just not possible!).  Then I suppose I could set up a dedicated A500 just for OctaMED.
Title: Re: Tips for getting low audio latency in UAE?
Post by: Tension on January 07, 2011, 05:50:45 PM
Quote from: ral-clan;604629
I suppose I could set up a dedicated A500 just for OctaMED.


Not sure which version you plan to use, but OctaMED Sound Studio on an A500/A2000 is not an enjoyable experience.  68000 cant cut it.
Title: Re: Tips for getting low audio latency in UAE?
Post by: spihunter on January 07, 2011, 05:53:00 PM
I agree. I've seen it running on A A1000 with fast ram and it was sad.

An A1200 with an 030 and 16mb+ of ram is perfect.



Quote from: Tension;604658
Not sure which version you plan to use, but OctaMED Sound Studio on an A500/A2000 is not an enjoyable experience.  68000 cant cut it.
Title: Re: Tips for getting low audio latency in UAE?
Post by: Ral-Clan on January 07, 2011, 06:17:16 PM
Quote from: spihunter;604662
I agree. I've seen it running on A A1000 with fast ram and it was sad.

An A1200 with an 030 and 16mb+ of ram is perfect.

Oh, I see.  Well, I guess I was thinking of an earlier version of OctaMED.

Are there any trackers that run well on a stock A500 with 1MB RAM?

I was playing around with my old MIDI sequencer Dr. T's KCS the other day in UAE.  I used to run this on my A500 in the late 1980s.  I guess I was getting nostalgic for "the simple days" before DAWs when making electronic music was so immediate and involved real hardware.  I was fantasizing about setting up a stock A500 with Dr. T's and maybe a tracker as a dedicated no-frills music machine.

I love DAWs (I use Reaper), but sometimes all those settings and choices and hundreds of plug-ins get in the way of "just making music".  I end up tweaking more than making music.

Although...sometime nostalgia is a lot more fun than the real thing!
Title: Re: Tips for getting low audio latency in UAE?
Post by: TheGoose on January 07, 2011, 06:45:51 PM
Well maybe older MED version 4 ? But no midi I think.

You have to love 'STEP' music programming. So many 16 STEP drum machines pretty much paved the way we make computer music, tracker or a sequencer, you can still today find a 'step' mode in most things.

.02$

 

Quote from: ral-clan;604666
Oh, I see.  Well, I guess I was thinking of an earlier version of OctaMED.

Are there any trackers that run well on a stock A500 with 1MB RAM?

I was playing around with my old MIDI sequencer Dr. T's KCS the other day in UAE.  I used to run this on my A500 in the late 1980s.  I guess I was getting nostalgic for "the simple days" before DAWs when making electronic music was so immediate and involved real hardware.  I was fantasizing about setting up a stock A500 with Dr. T's and maybe a tracker as a dedicated no-frills music machine.

I love DAWs (I use Reaper), but sometimes all those settings and choices and hundreds of plug-ins get in the way of "just making music".  I end up tweaking more than making music.

Although...sometime nostalgia is a lot more fun than the real thing!