Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   Quick Question (http://forums.winamp.com/showthread.php?t=150636)

Seth2k2 27th September 2003 18:06

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?

FesterHead 27th September 2003 18:10

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.

Seth2k2 27th September 2003 18:18

i have Same2 but where is that at? are u tlakign aobut jsut adding it to my playlist?

FesterHead 27th September 2003 18:23

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.

Seth2k2 27th September 2003 18:27

hmmm where do i point it to my promo file at?

FesterHead 27th September 2003 18:28

Wherever the promo file is located.

Seth2k2 27th September 2003 18:30

i mean where at in the .pal

FesterHead 27th September 2003 18:33

It's difficult to debug your PAL code without providing it.

Seth2k2 27th September 2003 18:34

/ 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]);

FesterHead 27th September 2003 18:38

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]

Seth2k2 27th September 2003 18:47

it wont let me edit my own post=\

TaintedNasedo 27th September 2003 20:29

What did your friend use to make the promos?


All times are GMT. The time now is 16:33.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.