emeck wrote:I noticed a bug maybe... If RNOWidgets is running, when opening a video in gmplayer audio is muted. Closing RNOWidgets and opening the video again makes audio work in gmplayer. Previous version didn't mute audio in gmplayer.
BTW, the audio works using hollywood's video player example while RNOWidgets is running.
Edit: this is with MOS 3.10.
Whoops, you're right, it can block audio in certain cases. Seems that Hollywood opens AHI device Unit 0 immediately when you load a sample, even when you're not playing it. And I was loading a default "beep" sample for the new alarm system with the @SAMPLE preprocessor command, which makes the program open AHI device immediately at startup and keeps it opened as long as the program is running.
Low-level access to AHI through its Music Unit doesn't work if any other unit is already opened, and this is what you found. It happens if you use a program that outputs its audio to AHI Music Unit and if your AHI Music Unit is configured to use audio hardware directly. And this happens with the default configuration of MorphOS and MPlayer. There are two solutions to get MPlayer work while RNOWidgets is running: 1) Set MPlayer output to AHI device unit instead of AHI Music Unit (MPlayer Preferences -> Audio Driver -> ahi_dev), OR 2) Set AHI output its Music Unit to Unit 0 instead of direct accessing (MorphOS Preferences -> Audio -> Music Unit -> Unit 0: HiFi 16 bit stereo++).
But of course it isn't acceptable that I'd require users to tune their system/program settings when running RNOWidgets, I'll have to find a solution for this and release a quick-fix update, so thanks for reporting this quickly
I probably have to use some external way to play samples, because it seems that current Hollywood behaviour doesn't work for this kind of program which is running on background always. It would be little better if I would load the sample later when it's actually needed, but it would still block the audio from other programs from that on, so it isn't a good solution either. Maybe I'll have to use some playback command from OS, or learn how AHI's AUDIO: device would work... in any case it'll be harder to avoid simultaneous playback if there are several samples played in a row, how to stop previous playback etc... hmm..
@Andreas
Do you happen to have any good ideas if something could be done with Hollywood itself? Is there any way to release AHI device after playback? While LoadSample does open the device, FreeSample doesn't seem to close it at least. Should Hollywood generally keep AHI device/unit open only when you actually play something?
Youtube audio doesn't work either with RNOWidgets running. After closing RNOW, resuming play of video works with audio.
Hmm.. I don't think this is the same issue.. at least for me OWB's internal video player uses AHI Unit 0 and not the Music Unit. How many channels you have set in MorphOS Preferences -> Audio -> Unit 0 -> Channels? Maybe you run out of these with too many programs outputting audio?