raff;162517 Wrote:
> I simply added additional check for $type of the stream (aap) and
> $format (mp3)
> It is not perfect - it's too 'specific' for 'universality' of the code
> but it works for me ;)
> In fact I agree with Bryan - this check on "$format eq 'mp3'" shouldn't
> be there at all but since it is, it might have some other purpose which
> I'm not aware of...
>
> This patch should not affect other parts of the code but should enable
> you to do bitrate limiting on AACPlus streams.
>
> Have a look at "/usr/local/slimserver/Slim/Player/Protocols/HTTP.pm"
> starting at line 189.
>
> then change this:
>
> >
Code:
--------------------
> >
>
> if (defined $command && $command eq '-' || $format eq 'mp3') {
> return $url;
> }
>
--------------------
> >
>
> to this:
>
> >
Code:
--------------------
> >
> if (defined $command && $command eq '-' || $format eq 'mp3') {
> if ($type eq 'aap' && $format eq 'mp3') {
> return 0;
> } else {
> return $url;
> }
> }
>
--------------------
> >
>
> HTH
> raff
Thanks Raff
--
Ramage
P2 266MHz,Linux ClarkConnect 3.2, SlimServer Version: 6.5.1 - 10145,
Alien 1.06
P4 2.6GHz, Win XP, SlimServer Version: 6.5.1 - 10638 - Windows XP,
Alien 1.06
NSLU2 Unslung 6.8b SlimServer Version: 6.3.1 - 8476 - Linux - EN -
iso-8859-1
------------------------------------------------------------------------
Ramage's Profile: http://forums.slimdevices.com/member.php?userid=5343
View this thread: http://forums.slimdevices.com/showthread.php?t=27996
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss