You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcutefish/audio/qml/volumefeedback.h

30 lines
566 B
C++

/*
SPDX-FileCopyrightText: 2016 David Rosca <nowrep@gmail.com>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#ifndef VOLUMEFEEDBACK_H
#define VOLUMEFEEDBACK_H
#include <QObject>
#include <canberra.h>
class VolumeFeedback : public QObject
{
Q_OBJECT
Q_PROPERTY(bool valid READ isValid CONSTANT)
public:
explicit VolumeFeedback(QObject *parent = nullptr);
~VolumeFeedback() override;
bool isValid() const;
public Q_SLOTS:
void play(quint32 sinkIndex);
};
#endif // VOLUMEFEEDBACK_H