PDA

View Full Version : =?utf-8?b?IlNsaW1TZXJ2ZXJfdjIwMDQtMDUtMTguZG1nIi0=?=



Neil Serdinsky
2004-05-19, 08:32
I understand this is fixed in 5-19, but since I am only accessing my system remotely right now I cannot install the new build. Is the fix small enough to post so I can make the change manually for now?

Thanks,
Neil

kdf
2004-05-19, 08:37
Quoting Neil Serdinsky <neilserdinsky (AT) mac (DOT) com>:

> I understand this is fixed in 5-19, but since I am only accessing my system
> remotely right now I cannot install the new build. Is the fix small enough to
> post so I can make the change manually for now?
>
> Thanks,
> Neil

I'm assuming this is the bitrate issue...in Prefs.pm, rewrite setMaxRate to this
(beware of linebreaks from the posting):

sub setMaxRate {
my $client = shift;
my $maxRate = clientGet($client,'transcodeBitrate') ||
clientGet($client,'maxBitrate');
if (!defined $maxRate) {
# Possibly the first time this pref has been accessed
# if maxBitrate hasn't been set yet, allow wired squeezeboxes to default to no
limit, others to 320kbps
$maxRate = ($client->model() eq 'squeezebox' && !defined
$client->signalStrength())
? 0 : 320;
clientSet($client,'maxBitrate',$maxRate);
}
return $maxRate;
}