2 * Copyright (C) 2016,2017 Konsulko Group
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include <pulse/pulseaudio.h>
19 #include <QtCore/QHash>
20 #include <QtCore/QObject>
22 class PaClient : public QObject
32 inline pa_context *context() const
39 pa_threaded_mainloop_lock(m_ml);
44 pa_threaded_mainloop_unlock(m_ml);
47 pa_sink_info * getDefaultSinkInfo(void);
48 void setDefaultSinkInfo(const pa_sink_info *i);
49 void setMasterVolume(const pa_cvolume *);
52 void incDecVolume(const int volume_delta);
55 void volumeExternallyChanged(int volume);
59 pa_threaded_mainloop *m_ml;
60 pa_mainloop_api *m_mlapi;
62 pa_cvolume m_master_cvolume;
63 pa_sink_info m_default_sink_info;