Quantcast
Channel: Squeezebox : Community : Forums - Logitech Media Server
Viewing all articles
Browse latest Browse all 5293

Change proposed to disable crossfade on single track playlists

$
0
0
I've written a perl script that uses my thermostat schedule to generate a morning "wakeup" action on the squeezebox closest to the bedroom using the CLI.
I launch a repeating short sound clip (like ones found on cell phone alarms) that last around 20 seconds and play it repeatedly for 60 seconds, then turn the squeezebox off. It has the advantage of always being in sync with my daily schedule.

One issue I had with the single, short sound clip is that it crossfades with itself in a very annoying fashion... (especially that I use 10s crossfades).

My current fix is as follows in file Squeezebox.pm:
921c921,923
< ( Slim::Player::ReplayGain->trackAlbumMatch( $master, -1 )
---
> ( Slim::Player::Playlist::count($master) < 2
> ||
> Slim::Player::ReplayGain->trackAlbumMatch( $master, -1 )

So I just turn off crossfading for 1 track playlists.

Right now, I re-apply this change after each logitechmediaserver upgrade but it would be nice if it could be included in the official release if you find it worthwhile.
Of course, if you have better ways to achieve the same end result, by all means use that! :)

Thanks,
Daniel

Viewing all articles
Browse latest Browse all 5293

Trending Articles