mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-28 07:51:21 +02:00
raspi: improve set_volume
This commit is contained in:
@@ -414,12 +414,8 @@ void aDec::run()
|
||||
|
||||
int aDec::set_volume(int vol)
|
||||
{
|
||||
struct packet_t *packet;
|
||||
long volume = (vol - 100) * 60;
|
||||
packet = (packet_t *)malloc(sizeof(*packet));
|
||||
packet->PTS = volume;
|
||||
packet->buf = NULL;
|
||||
codec_queue_add_item(&codecs.acodec, packet, MSG_SET_VOLUME);
|
||||
codec_send_message(&codecs.acodec, MSG_SET_VOLUME, (void *)volume);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user