SamY wrote: 
> ...when I change the volume using Google Home, these lines seem to be
> generated in the log:
> 
> > 
Code:
--------------------
  >   > [20:36:13.831] CastSocketThread:590 [006D9698]: type:RECEIVER_STATUS 
(id:84)
  > [20:36:14.320] CastSocketThread:590 [006D9698]: type:RECEIVER_STATUS (id:85)
--------------------
> > 
> 

Looking at the code, it appears to me that the stereo pair is seen by
the bridge as a player group and the volume commands are ignored as a
result. Here is the relevant code in squeeze2cast.c beginning at line
584:


Code:
--------------------
                        // check for volume at the receiver level, but only 
record the change
                        if (type && p->Config.VolumeFeedback && 
!strcasecmp(type, "RECEIVER_STATUS")) {
                                double volume;
                                bool muted;
  
                                if (!p->Group && GetMediaVolume(data, 0, 
&volume, &muted)) {
                                        if (volume != -1 && !muted && volume != 
p->Volume) Volume = volume;
                                }
                        }
  
                        // now apply the volume change if any
                        if (Volume != -1 && fabs(Volume - p->Volume) >= 0.01 && 
now > p->VolumeStampTx + 1000) {
                                uint16_t VolFix = Volume * 100 + 0.5;
                                p->VolumeStampRx = now;
                                LOG_INFO("[%p]: Volume local change %u 
(%0.4lf)", p, VolFix, Volume);
                                // candidate for busyraise/drop as it's using 
cli
                                sq_notify(p->SqueezeHandle, p, SQ_VOLUME, NULL, 
&VolFix);
                        }
--------------------


So, assuming that there is a valid reason to ignore group volume
changes, the question would seem to be "Is it possible to distinguish a
stereo pair from a player group and only ignore group volume changes?".



Sam
------------------------------------------------------------------------
SamY's Profile: http://forums.slimdevices.com/member.php?userid=63495
View this thread: http://forums.slimdevices.com/showthread.php?t=104614

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to