2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.pulseaudio.internal.items;
16 * GenericAudioItems are any kind of items that deal with audio data and can be
17 * muted or their volume can be changed.
19 * @author Tobias Bräutigam - Initial contribution
21 public abstract class AbstractAudioDeviceConfig extends AbstractDeviceConfig {
31 protected State state;
32 protected boolean muted;
34 protected Module module;
36 public AbstractAudioDeviceConfig(int id, String name, Module module) {
41 public Module getModule() {
45 public void setModule(Module module) {
49 public State getState() {
53 public void setState(State state) {
57 public boolean isMuted() {
61 public void setMuted(boolean muted) {
65 public int getVolume() {
69 public void setVolume(int volume) {
74 public String toString() {
75 return this.getClass().getSimpleName() + " #" + id + " (Module: " + module + ") " + name + ", muted: " + muted
76 + ", state: " + state + ", volume: " + volume;