How to supress Multiview's window completely?

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
Raziel
Posts: 1171
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

How to supress Multiview's window completely?

Post by Raziel »

Is there a way to suppress Multiview's window completely and let media play back in the background?

Multiview has the possibility to play sound data IMMEDIATEly with a tooltype called the same.
Yet, it's window will still come up.
Furthermore it won't close itself after the media was played back.

My question is:
Can i somehow teach Multiview to either not pop up a window on playback or tell it to immediately close itself after the playback has finished?

Right now i use a two line command to achieve what i'm trying to do:

Code: Select all

Multiview "Sound" IMMEDIATE PORTNAME=FR.SOUND
RX 'ADDRESS FR.SOUND QUIT'
It works, but it looks hacky

Thanks a lot
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: How to supress Multiview's window completely?

Post by broadblues »

Not that I'm aware of.

You could try iconifying it and using a REXX command to load the sound.

MultiView WINDOW IMMEDIATE

click iconify gadget

rx "ADDRESS MULTIVIEW.1 OPEN NAME mysounf.aiff"

Really if you want abackground sound player you should find a different tool, MultiView is for viewing stuff.

You could try the interestingly named SoundPlayer which curiously enough plays sounds...

C:SoundPlayer FROM mycoolsound.aiff
User avatar
Raziel
Posts: 1171
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: How to supress Multiview's window completely?

Post by Raziel »

broadblues wrote:Not that I'm aware of.

You could try iconifying it and using a REXX command to load the sound.

MultiView WINDOW IMMEDIATE

click iconify gadget

rx "ADDRESS MULTIVIEW.1 OPEN NAME mysounf.aiff"

Really if you want abackground sound player you should find a different tool, MultiView is for viewing stuff.

You could try the interestingly named SoundPlayer which curiously enough plays sounds...

C:SoundPlayer FROM mycoolsound.aiff
/me hugs broadblues

I knew about SoundPlayer, but i always thought the played back sound is "hardcoded" and comes from the sound prefs setting.

Oh boy, thanks a lot, that saves me some hassle :-)

You've got one pint on me :-)
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: How to supress Multiview's window completely?

Post by nbache »

Like SYS:Documentation/C/SoundPlayer.doc says:
SoundPlayer reads a sound sample from disk and plays it through
AHI.device. The sample filename may be specified on the command line,
or, if no input file is specified, SoundPlayer will read the system
sound.prefs file and look there for a filename.
Best regards,

Niels
Post Reply