Welcome, Guest. Please login or register.

Author Topic: AHI - Only one program to use sound at a time?  (Read 1795 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
AHI - Only one program to use sound at a time?
« 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?
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show only replies by Franko
Re: AHI - Only one program to use sound at a time?
« Reply #1 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... :)
 

Offline mikeymike

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 3420
  • Country: 00
    • Show only replies by mikeymike
Re: AHI - Only one program to use sound at a time?
« Reply #2 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 :)
 

Offline krashan

  • Sr. Member
  • ****
  • Join Date: Jan 2003
  • Posts: 253
  • Country: pl
  • Thanked: 1 times
  • Gender: Male
  • Hardware designer and programmer
    • Show only replies by krashan
    • Personal homepage
Re: AHI - Only one program to use sound at a time?
« Reply #3 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).