Skip to Content
It is currently October 23rd, 2019, 11:17 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: July 5th, 2019, 8:35 am 
Offline
New User
New User

Joined: January 15th, 2019, 7:32 pm
Posts: 7
Location: Padang, Indonesia
Hello everyone,

I am using a Pal Script to relay a Radio Station at certain time so I can leave SAM works automatically - with no operator. The script works well and it runs as expected. SAM does the relay (On and Off) at specific time automatically

However, after a while, I received complaints from my listeners that the VOLUME of relay is much less than normal one, so they have to turn up the volume during the relay program and turn down the volume again when it's done.

My question : Is there any PAL Script can do the correction of the SAM VOLUME during the relay automatically with no operator ?

Thank you


Top
 Profile  
Reply with quote  
PostPosted: July 5th, 2019, 4:23 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7878
Location: Aachen (Germany)
Each deck has a volume property that you can set to a positive integer number.
0 is mute and I'm not sure if 255 was the maximum loudness or the point where the default 100% marker is set in SAM.

Basically you can set the volume at once (abruptly) like this:
Code:
DeckA.Volume := 255;

or fade the volume slider up-/downwards like this:
Code:
DeckA.FadeToVolume(255, 3); // Fade from what it's currently set to max and reach 255 volume after 3 seconds


Obviously you can replace DeckA by whatever you like (ActivePlayer, IdlePlayer, QueuedPlayer, DeckB, Aux1, Aux2, Aux3, SoundFX, VoiceFX) and you could also just store the current volume in a variable and then reset it to that after you finished playing your relay.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group