Thanks for that.  I need to have a play with this as I don't know how
the new callback mechanism works (Fred's rewritten the appropriate bits
of random mix to work with this, and I'm not up to speed with it). 
Could you give me a transcript of loading an album via the cli.  I'll
then do it myself and work out what needs changing to have random mix
exit appropriately.

Max

Dr Lovegrove Wrote: 
> On 12/01/06, max. spicer <max.spicer.21j9pz (AT) no-mx (DOT)
> forums.slimdevices.com> wrote:
> >
> > If you look at the random mix code (around line 563) you'll see that
> it
> > has a specific list of commands that it watches out for.  If it sees
> > one of these commands, it stops the mix.  Run slimserver with
> d_plugins
> > and watch out in the log for what command random mix receives in
> your
> > case (it will say "RandomPlay: received command ...".  Providing
> this
> > command doesn't conflict with any other situations where stopping
> would
> > be inappropriate, this command can just be added to the list. 
> Please
> > post the results here as I'm curious to know which command I missed!
> 
> Ah, right, yup:
> 
> 2006-01-12 19:19:37.0261 Matched Format: mp3 Type: mp3 Command: -
> 2006-01-12 19:19:37.0285 openSong: this is an mp3 file:
> file:///F:/mp3s/slim2/S/
> Sonic%20Boom/Spectrum/01%20-%20Help%20Me%20Please.mp3
> 2006-01-12 19:19:37.0326   file type: mp3 format: mp3 inrate: 258
> maxRate: 0
> 2006-01-12 19:19:37.0348   command: -
> 2006-01-12 19:19:37.0371 openSong: opening file F:\mp3s\slim2\S\Sonic
> Boom\Spectrum\01 - Help Me Please.mp3
> 2006-01-12 19:19:37.0678  seeking in 1833 into F:\mp3s\slim2\S\Sonic
> Boom\Spectrum\01 - Help Me Please.mp3
> 2006-01-12 19:19:37.0723 Streaming with format: mp3
> 2006-01-12 19:19:37.2656 RandomPlay: received command open
> file:///F:/mp3s/slim2/S/Sonic%20Boom/Spectrum/01%20-%20Help%20Me%20Please.mp3
> 2006-01-12 19:19:37.2699 RandomPlay: while in mode: track, from
> Downstairs player
> 2006-01-12 19:19:37.2747 xx:xx:xx:xx:xx:xx New play mode: play
> 2006-01-12 19:19:37.2863 xx:xx:xx:xx:xx:xx: Current playmode: play
> 2006-01-12 19:19:37.2890 RandomPlay: received command playlistcontrol
> cmd:load album_id:449 artist_id:1769 count:7
> 2006-01-12 19:19:37.3075 RandomPlay: while in mode: track, from
> Downstairs player
> 2006-01-12 19:19:37.3333 We need to send 0 seconds of silence...
> 2006-01-12 19:19:37.3357 sending 0 bytes of silence
> 2006-01-12 19:19:37.8379 Got a track starting event
> 2006-01-12 19:19:37.8404 Song 0 has now started playing
> 2006-01-12 19:19:37.8432 RandomPlay: received command newsong
> 2006-01-12 19:19:37.8458 RandomPlay: while in mode: track, from
> Downstairs player
> 2006-01-12 19:19:37.8499 RandomPlay: new song detected (0)
> 2006-01-12 19:19:37.8524 RandomPlay: playRandom called with type track
> 2006-01-12 19:19:37.8547 RandomPlay: 6 songs remaining, songIndex = 0
> 2006-01-12 19:19:37.9631 RandomPlay: Starting random selection of 3
> items for ty
> pe: track
> 
> --
> - Dr Lovegrove
> http://www.rusticrhino.com/drlovegrove


-- 
max.spicer

The wild things roared their terrible roars and gnashed their terrible
teeth
and rolled their terrible eyes and showed their terrible claws
but Max stepped into his private boat and waved good-bye
------------------------------------------------------------------------
max.spicer's Profile: http://forums.slimdevices.com/member.php?userid=23
View this thread: http://forums.slimdevices.com/showthread.php?t=19969

_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to