Old 27th September 2003, 18:06   #1
Seth2k2
Junior Member
 
Join Date: Sep 2003
Posts: 16
Quick Question

IS thre a wya to play like a radio promo inbetween songs?

A friend of mine made me an awsoume radio promo and i want it played every xxxx minutes or inbetween songs. is that possible?
Seth2k2 is offline   Reply With Quote
Old 27th September 2003, 18:10   #2
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Check out the results from a SHOUTcast forum search on 'scheduling'.

Look for a post by arti titled:
scheduling jingles

Note: Other search criteria may yield more results.

You can also accomplish rotation with pre-constructed playlists and Windows Scheduler.

For linux, see this thread.

FesterHead is offline   Reply With Quote
Old 27th September 2003, 18:18   #3
Seth2k2
Junior Member
 
Join Date: Sep 2003
Posts: 16
i have Same2 but where is that at? are u tlakign aobut jsut adding it to my playlist?
Seth2k2 is offline   Reply With Quote
Old 27th September 2003, 18:23   #4
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
If you use SAM2 just create a PAL script that plays every xxxx minutes or inbetween songs.

For a sample, check out my festerhead radio ditty PAL that plays a promo once every 2 hours 12 minutes and 47 seconds.

For SAM2 PAL assistance, please use the SAM2 forums.

FesterHead is offline   Reply With Quote
Old 27th September 2003, 18:27   #5
Seth2k2
Junior Member
 
Join Date: Sep 2003
Posts: 16
hmmm where do i point it to my promo file at?
Seth2k2 is offline   Reply With Quote
Old 27th September 2003, 18:28   #6
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Wherever the promo file is located.

FesterHead is offline   Reply With Quote
Old 27th September 2003, 18:30   #7
Seth2k2
Junior Member
 
Join Date: Sep 2003
Posts: 16
i mean where at in the .pal
Seth2k2 is offline   Reply With Quote
Old 27th September 2003, 18:33   #8
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
It's difficult to debug your PAL code without providing it.

FesterHead is offline   Reply With Quote
Old 27th September 2003, 18:34   #9
Seth2k2
Junior Member
 
Join Date: Sep 2003
Posts: 16
/ Don't be a dick. Leave this here.
// FesterHead Radio Promo script by FesterHead (removed)
// Version 1.2 07/15/2003
//
// WARNING!
// IF YOU DON'T CONFIGURE THE SCRIPT, DON'T EXPECT IT TO WORK PROPERLY!
//
// 1.2 changes
// * Expanded verbosity from a boolean to three levels
// 0 = log time stamp only
// 1 = log time stamp and information
// 2 = log time stamp, information, and sql statements
//
// 1.1 changes
// * Added logging
//
// Plays FesterHead Radio promos

// Declare variables
var timeToWait : String;
var palName, palHistory : String;
var usePalHistory, doHistory : Boolean;
var verbose : Integer;

// START OF CONFIGURABLES

// How long to wait?
timeToWait := '+01:00:15';

// Write a log of this pal to MySQL?
// Note: Setting to true will create the necessary tables
// if they don't already exist
// Table name = palhistory
// Table columns = id (pk and auto-number), date, name, history
usePalHistory := false;

// 0 = log time stamp only
// 1 = log time stamp and information
// 2 = log time stamp, information, and sql statements
verbose := 0;

// END OF CONFIGURABLES

// Keep da bugger goin!
PAL.Loop := true;

// Reset PAL log
palHistory := '';
doHistory := false;

// Add a FesterHead Radio promo to the bottom of the queue
CAT['FHR Ditty'].QueueTop(smRandom, prNoRules);

palName := 'festerhead radio ditty';

// Construct PAL log
if (usePalHistory and (verbose >= 1)) then
begin
palHistory := palHistory + 'Added ditty\n';
end;

doHistory := true;

// Write PAL log
if (usePalHistory and doHistory) then
begin
// Create the table if it doesn't already exist
ExecSQL('CREATE TABLE IF NOT EXISTS palhistory ' +
'(id MEDIUMINT(9) AUTO_INCREMENT PRIMARY KEY, ' +
'date DATETIME, ' +
'name VARCHAR(255),' +
'history TEXT)', []);
ExecSQL('INSERT INTO palhistory (date, name, history) VALUES (''' +
FormatDateTime('yyyy-mm-dd hh:mm:ss', Now) + ''', ' +
QuotedStr(palName) + ', ' +
QuotedStr(palHistory) + ')', []);
doHistory := false;
end;

// Wait
PAL.WaitForTime(T[timeToWait]);
Seth2k2 is offline   Reply With Quote
Old 27th September 2003, 18:38   #10
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Quote:
CAT['FHR Ditty'].QueueTop(smRandom, prNoRules);
Add a category to your list and populate it with your promos.
The line above will pick a random entry from there to play.

If you want to point it to a file directly, change the line above to:

Queue.AddFile(your-promo-path, ipTop); // Add to the queue top
**OR**
Queue.AddFile(your-promo-path, ipBottom); // Add to the queue bottom

Example:
If your promo is located at c:\promos\promo.mp3 and you want to add it to the queue top, then use:

Queue.AddFile('c:\promos\promo.mp3', ipTop);

For further PAL assistance, please use the SAM2 forums.

[edit]
Please remove my email address from the post above.
[/edit]

FesterHead is offline   Reply With Quote
Old 27th September 2003, 18:47   #11
Seth2k2
Junior Member
 
Join Date: Sep 2003
Posts: 16
it wont let me edit my own post=\
Seth2k2 is offline   Reply With Quote
Old 27th September 2003, 20:29   #12
TaintedNasedo
Junior Member
 
Join Date: Sep 2003
Location: New Zealand
Posts: 5
What did your friend use to make the promos?
TaintedNasedo is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump