set ap volume 30 for tvs
This commit is contained in:
parent
487e1b9b2a
commit
f9d1f8459f
1 changed files with 7 additions and 1 deletions
|
@ -210,7 +210,7 @@ export default class RAOP {
|
|||
this.portairplay = ipport;
|
||||
this.device = this.airtunes.add(ipv4, {
|
||||
port: ipport,
|
||||
volume: 50,
|
||||
volume: airplay2dv ? 30 : 50,
|
||||
password: sepassword,
|
||||
txt: txt,
|
||||
airplay2: airplay2dv,
|
||||
|
@ -262,6 +262,12 @@ export default class RAOP {
|
|||
}
|
||||
});
|
||||
|
||||
electron.ipcMain.on("setAirPlayVolume", (event, volume) => {
|
||||
if (this.device) {
|
||||
this.device.setVolume(volume);
|
||||
}
|
||||
});
|
||||
|
||||
electron.ipcMain.on("writeWAV", (event, leftbuffer, rightbuffer) => {
|
||||
if (this.airtunes != null) {
|
||||
if (this.worker == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue