Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: XDelusion on October 10, 2010, 03:11:32 AM

Title: AHI - Only one program to use sound at a time?
Post by: XDelusion on October 10, 2010, 03:11:32 AM
Am I missing something or can my Amiga or MorphOS machines only have one program using AHI at a time?
Title: Re: AHI - Only one program to use sound at a time?
Post by: Franko on October 10, 2010, 06:04:51 AM
Like most Amiga apps using the audio channels, you can't use more than one at a time, cos the miggy can't allocate the audio channels if they're already in use... :)
Title: Re: AHI - Only one program to use sound at a time?
Post by: mikeymike on October 10, 2010, 10:08:24 AM
I remember when the PC began to be able to play audio samples simultaneously, that was about the only time I was interested in sound hardware :)
Title: Re: AHI - Only one program to use sound at a time?
Post by: krashan on October 10, 2010, 10:26:17 AM
Quote from: XDelusion;583808
Am I missing something or can my Amiga or MorphOS machines only have one program using AHI at a time?

It depends. AHI can be used in two modes: exclusive mode and shared mode. Exclusive mode uses "music unit" settings. It may be used only by one application, and all other applications are ruled out. This mode is usually used by applications requiring low audio latency and full realtime control. Shared mode on the other hand may be used by many applications at once. Number of sounds playing simultaneously is limited by AHI settings.

There is also a possibility to "cheat", which mean making exclusive mode not so exclusive. It requires AHI v6. In music unit settings one has to choose "Unit 0:" mode. Then exclusive mode is redirected into shared one, at a slight quality loss and responsivenes degradation (which may be important, or not, depending on application).