Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Acill on February 21, 2016, 06:28:57 PM

Title: audio.device already in use?
Post by: Acill on February 21, 2016, 06:28:57 PM
Not sure how since I havent installed anything new I remember to cause this. When I launch a whdload game through igame I get a popup telling me audio.decice is already in use. I also get no video display when I select to ignore. This just randomly popped up. Still need to try other programs to test audio,  but I do hear poseidon make its sounds when a usb device is inserted.
Title: Re: audio.device already in use?
Post by: Lizard on February 21, 2016, 07:34:23 PM
Maybe AHI in exclusive mode?
Title: Re: audio.device already in use?
Post by: Acill on February 21, 2016, 07:47:47 PM
Quote from: Lizard;804357
Maybe AHI in exclusive mode?


Ill have to check on that. Is that setting in the AHI prefs app?
Title: Re: audio.device already in use?
Post by: Lizard on February 21, 2016, 08:06:48 PM
Quote from: Acill;804359
Ill have to check on that. Is that setting in the AHI prefs app?


It used to be, now I cannot really find it, seems the behavior also changed since the release of AHI 6.0.

http://www.amiga.org/forums/showpost.php?p=583832&postcount=4
Title: Re: audio.device already in use?
Post by: guest11527 on February 21, 2016, 11:23:52 PM
Quote from: Acill;804352
Not sure how since I havent installed anything new I remember to cause this.

One typical reason for that is the workbench (or IPrefs): If you enable in the preferences that you get an audible beep whenever an application goes through the intuition DisplayBeep() function, then the audio.device will be used to allocate channels while the display is flashing.  Just try to turn the audible beep off, this releases the audio channels in such cases.
Title: Re: audio.device already in use?
Post by: kolla on February 21, 2016, 11:36:51 PM
What a mess audio on Amiga is :)
Title: Re: audio.device already in use?
Post by: guest11527 on February 22, 2016, 12:03:28 AM
Quote from: kolla;804373
What a mess audio on Amiga is :)

Not really. I would rather say "The typical mis-use of the audio.device is a mess".  

If audio.device would be used properly, the situation would be no problem: Intuition (via IPrefs) "steals" the channels for the duration of the DisplayBeep().

The application whose audio channels has been stolen is informed about this fact, and could re-allocate the channels when IPrefs is done. The protocol for that is all there, just that "nobody cares" to use it.  Typically, the audio.device is used to allocate channels at the beginning (if at all), and then applications just "poke the hardware", assuming "all is fine".

Nowadays, one would of course assume that audio.device implements a software mixer of the various audio sources, but that's probably just too much complexity for a poor 68K.
Title: Re: audio.device already in use?
Post by: paul1981 on February 22, 2016, 02:54:47 AM
I'm suprised WHDLoad allocates audio.device. I wonder why?
Can anyone replicate this issue? What was causing the display beep in the first place Acill? Snoopdos may be of help here.
Title: Re: audio.device already in use?
Post by: Acill on February 22, 2016, 03:45:28 PM
Ill fire up snoopdos and see what its doing. I had to leave and go back to work.  My Amiga gearbis at my other house and I wint get back this week.
Title: Re: audio.device already in use?
Post by: guest11527 on February 22, 2016, 04:07:45 PM
Quote from: Acill;804406
Ill fire up snoopdos and see what its doing. I had to leave and go back to work.  My Amiga gearbis at my otherbhouse and I wint get back this week.

Unfortunately, to my very knowledge SnoopDos does not watch the audio.device.
Title: Re: audio.device already in use?
Post by: Acill on April 07, 2016, 01:47:33 AM
This is still an issue. I cant seem to get any players to play any sound without getting that error still.

Where do I check this to see if its the play sound beep causing it? If its the sound pref in the prefs nothing is check in there.

I have AHI installed and working with my sound card for things that use it just fine as far as I can tell. If I remove a USB device or add one I also hear the poseidon sound it makes, so some sound must be working unless that plays through AHI.

I'd love to get this fixed!
Title: Re: audio.device already in use?
Post by: amiadudeorwat on April 07, 2016, 02:51:06 AM
Maybe it's Poseidon Popups allocating the audio device?  IIRC you can turn off the sound prompts in Poseidon, which may be what happening every boot if it is popping up with a detect on every boot.
Title: Re: audio.device already in use?
Post by: Acill on April 07, 2016, 05:18:56 AM
Quote from: amiadudeorwat;806891
Maybe it's Poseidon Popups allocating the audio device?  IIRC you can turn off the sound prompts in Poseidon, which may be what happening every boot if it is popping up with a detect on every boot.


Could be, how do I turn that off?
Title: Re: audio.device already in use?
Post by: Thomas on April 07, 2016, 07:47:14 AM
You have to shut down Poseidon before you run WHDLoad anyway, so Poseidon should not be the problem.
Title: Re: audio.device already in use?
Post by: Acill on April 07, 2016, 02:12:11 PM
Quote from: Thomas;806900
You have to shut down Poseidon before you run WHDLoad anyway, so Poseidon should not be the problem.


Actually WHDLOAD runs fine on my system if I leave it up, I only secure Roadshow.

I have also rebooted after the problem and it seems I can get audio back. It does seem to be poseidon causing the audio issue though. When I boot my A4000T I have my Mac running. I use a USB KVM to share a mouse and keyboard between them. When the A4000T is fully booted I switch and it causes the poseidon pop up. If I warb reboot the problem goes away. Its strange.
Title: Re: audio.device already in use?
Post by: amiadudeorwat on April 08, 2016, 11:39:21 AM
Try going into trident and under the popup config, clearing the connection sound and the disconnection sound and setting to only popup on error.
Title: Re: audio.device already in use?
Post by: Acill on April 08, 2016, 01:48:24 PM
Quote from: amiadudeorwat;806925
Try going into trident and under the popup config, clearing the connection sound and the disconnection sound and setting to only popup on error.


Did that, so far so good.