mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 19:47:02 +03:00
equalizer - release
This commit is contained in:
@@ -56,8 +56,6 @@ sub onNotification {
|
||||
my $client = $request->client;
|
||||
|
||||
my $reqstr = $request->getRequestString();
|
||||
$log->info("artwork update notification $reqstr");
|
||||
#my $path = $request->getParam('_path');
|
||||
|
||||
update_artwork($client);
|
||||
}
|
||||
@@ -108,6 +106,14 @@ sub send_artwork {
|
||||
}
|
||||
}
|
||||
|
||||
sub send_equalizer {
|
||||
my ($client) = @_;
|
||||
my $equalizer = $prefs->client($client)->get('eq');
|
||||
my $size = @$equalizer;
|
||||
my $data = pack("c[$size]", @{$equalizer});
|
||||
$client->sendFrame( eqlz => \$data );
|
||||
}
|
||||
|
||||
sub config_artwork {
|
||||
my ($client) = @_;
|
||||
my $artwork = $prefs->client($client)->get('artwork');
|
||||
|
||||
Reference in New Issue
Block a user