Hi,
It’s probably just a misconfiguration on my side, but… onShutdown doesn’t seem to work for me (mAirList Version 4.4.5 Build 2069) - is it possible that this is fixed in a newer version? I am always reluctant to upgrade (never change a running system, you know ;-))
However, what’s happening? I’m writing a script for my Behringer CMD MM-1 aand I’d like to reset the unit to defaults when leaving mAirlist. The resetting part works, I’ve verified that that. Here’s part of a log I created during a runf (the script is loaded as a notification script). I removed irrelevant parts of the log to concentrate on the important parts:
2014-11-22 22:55:34 Information mAirList Version 4.4.5 Build 2069 startet...
2014-11-22 22:55:34 Status Lade Modul Core...
2014-11-22 22:55:34 Status Lade Modul Playout...
2014-11-22 22:55:34 Status Lade Modul LayoutSkin...
2014-11-22 22:55:34 Status Lade Modul Scripting...
2014-11-22 22:55:34 Status Lade Modul CoreGUI...
2014-11-22 22:55:34 Status Lade Modul CoreRemote...
2014-11-22 22:55:34 Status Lade Modul CoreLogging...
2014-11-22 22:55:34 Status Lade Modul BassAudio...
2014-11-22 22:55:35 Status Lade Modul BassASIO...
2014-11-22 22:55:35 Status Lade Modul BassVST...
2014-11-22 22:55:35 Status Lade Modul BassWASAPI...
2014-11-22 22:55:35 Status Lade Modul AutoCue...
2014-11-22 22:55:35 Status Lade Modul Mixdown...
2014-11-22 22:55:35 Status Lade Modul BassStreaming...
2014-11-22 22:55:35 Status Lade Modul SQLDatabases...
2014-11-22 22:55:35 Status Lade Modul DBLite...
2014-11-22 22:55:35 Status Lade Modul WindowsMixer...
2014-11-22 22:55:35 Status Lade Modul WindowsMidi...
2014-11-22 22:55:35 Status Lade Modul WindowsJoystick...
2014-11-22 22:55:35 Status Lade Modul IOWarrior...
2014-11-22 22:55:35 Status Lade Modul MiscDatabases...
2014-11-22 22:55:35 Status Lade Modul WMClient...
2014-11-22 22:55:35 Status Lade Modul HTTP...
2014-11-22 22:55:35 Status Lade Modul InpOut32...
2014-11-22 22:55:35 Status Lade Modul AudioFileTypes...
2014-11-22 22:55:35 Status Lade Modul DRS2006...
2014-11-22 22:55:35 Status Lade Modul DBClient...
2014-11-22 22:55:35 Status Lade Modul PlaylistExport...
2014-11-22 22:55:35 Status Lade Modul GraphicalCueing...
2014-11-22 22:55:35 Status Lade Modul LiveFeed...
2014-11-22 22:55:35 Status Lade Modul VT...
2014-11-22 22:55:35 Status Lade Modul Velleman...
2014-11-22 22:55:35 Status Lade Modul SMTP...
2014-11-22 22:55:35 Status Lade Modul Events...
2014-11-22 22:55:35 Status Lade Modul MixEditor...
2014-11-22 22:55:36 Status Starte Engine...
2014-11-22 22:55:36 Status Initialisiere Player...
2014-11-22 22:55:36 Status Initialisiere Cartwall...
2014-11-22 22:55:37 Information Benachrichtigungs-Script D:\mAirList\scripts\Behringer_CMD_MM-1\Behringer_CMD_MM-1.mls wurde geladen
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.OnLoad called.
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.initController called.
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.initController finished.
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.openController called.
2014-11-22 22:55:37 Information Device 0: Microsoft GS Wavetable Synth
2014-11-22 22:55:37 Information Device 1: UltraLite mk3
2014-11-22 22:55:37 Information Device 2: CMD MM-1
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.openController finished.
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.SetAssist called.
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.resetController called.
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.resetController finished.
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.SetAssist finished.
2014-11-22 22:55:37 Information Behringer_CMD_MM-1.OnLoad finished.
2014-11-22 22:55:55 Playlist Start: D:\transfer_g\lib\bwf\Alison Moyet\Singles\06 Alison Moyet - All Cried Out.wav
2014-11-22 22:55:55 Information Behringer_CMD_MM-1.OnPlayerStateChange called. PlaylistIndex: 0, PlayerIndex: 0, TODO: get toStr functions for OldState, NewState (TPlayerState)
2014-11-22 22:55:55 Information Behringer_CMD_MM-1.OnPlayerStateChange finished.
2014-11-22 22:55:55 Information Behringer_CMD_MM-1.OnPlayerStart called. PlaylistIndex: 0, PlayerIndex: 0, TODO: get toStr function for Item (IPlaylistItem)
2014-11-22 22:55:55 Information Behringer_CMD_MM-1.OnPlayerStart finished.
...
2014-11-22 23:01:20 Playlist Stop: D:\transfer_g\lib\bwf\Alison Moyet\Singles\06 Alison Moyet - All Cried Out.wav (141 seconds)
The log shows that the script is working. I started mAirlist, the Track I’m playing is in the playlist when mAirlist loads so I only need to start the track. I’m closing mAirlist while the track is playing (although this has no effect, it’s the same if I stop mAirlist with no track player running) and the “Stop” still appears in the log, however, the onShutdown doesn’t - although onShutdown should call resetController to clean things up:
procedure OnShutdown;
begin
if (DEBUG = true) then
begin
systemlog(ME + '.OnShutdown called.');
end;
resetController;
closeController;
if (DEBUG = true) then
begin
systemlog(ME + '.OnShutdown finished.');
end;
end;
Any hints, anyone…?
Kind regards,
McCavity