philippe_44 wrote: > I've submitted a PR with that > > > Code: -------------------- > > > if ($client->streamBytes() == 0 && $client->streamformat() eq 'mp3' && $client->streamingSong()->samplerate() == 44100) { > -------------------- > > > It's lazyman version as it will only work for files (samplerate in > $song object is only set when streaming local files), you could try to > use > > Code: -------------------- > > > $client->streamingSong->currentTrack->samplerate > -------------------- > > > as well if you prefer
If it applies only to MP3 anyway, one could do an "extended lazyman" version with two different silence files for 44.1 and 48 kHz. Other sampling rates for MP3 should be really unusual. ------------------------------------------------------------------------ schup011's Profile: http://forums.slimdevices.com/member.php?userid=66557 View this thread: http://forums.slimdevices.com/showthread.php?t=114921 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix