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/QObject>
21 const char * const channel_position_string[] =
50 class PaClient : public QObject
60 inline pa_context *context() const
67 pa_threaded_mainloop_lock(m_ml);
72 pa_threaded_mainloop_unlock(m_ml);
75 void addOneControlState(int type, int index, const pa_cvolume *cvolume);
78 void setVolume(uint32_t type, uint32_t index, uint32_t channel, uint32_t volume);
81 void controlAdded(int cindex, QString desc, int type, int channel, const char *cdesc, int volume);
85 pa_threaded_mainloop *m_ml;
86 pa_mainloop_api *m_mlapi;
88 QList<CState *> m_cstatelist;