]> git.basschouten.com Git - openhab-addons.git/blob
c5162b3a51dc69e74b24eb132b8eec351e65d753
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.pulseaudio.internal.items;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * A Source is a device which is the source of an audio stream (recording
20  * device) For example microphones or line-in jacks.
21  *
22  * @author Tobias Bräutigam - Initial contribution
23  */
24 @NonNullByDefault
25 public class Source extends AbstractAudioDeviceConfig {
26
27     @Nullable
28     protected Sink monitorOf;
29
30     public Source(int id, String name, @Nullable Module module) {
31         super(id, name, module);
32     }
33
34     public @Nullable Sink getMonitorOf() {
35         return monitorOf;
36     }
37
38     public void setMonitorOf(@Nullable Sink sink) {
39         this.monitorOf = sink;
40     }
41 }