func NewMicrophone() *Microphone { svc := Microphone{} svc.Service = New(TypeMicrophone) svc.Mute = characteristic.NewMute() svc.AddCharacteristic(svc.Mute.Characteristic) return &svc }
func NewSpeaker() *Speaker { svc := Speaker{} svc.Service = New(TypeSpeaker) svc.Mute = characteristic.NewMute() svc.AddCharacteristic(svc.Mute.Characteristic) return &svc }