mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Add JSDoc comments
This commit is contained in:
parent
37c69ebe62
commit
4e802b0f3f
2 changed files with 23 additions and 3 deletions
|
@ -50,6 +50,8 @@ class Audio : public AudioScriptingInterface, protected ReadWriteLockable {
|
|||
* <em>Read-only.</em>
|
||||
* @property {object} devices <em>Read-only.</em> <strong>Deprecated:</strong> This property is deprecated and will be
|
||||
* removed.
|
||||
* @property {boolean} isSoloing <em>Read-only.</em> <code>true</code> if any nodes are soloed.
|
||||
* @property {QVector<QUuid>} soloList <em>Read-only.</em> Get the list of currently soloed node UUIDs.
|
||||
*/
|
||||
|
||||
Q_PROPERTY(bool muted READ isMuted WRITE setMuted NOTIFY mutedChanged)
|
||||
|
|
|
@ -32,25 +32,43 @@ public:
|
|||
virtual ~AudioScriptingInterface() = default;
|
||||
void setLocalAudioInterface(AbstractAudioInterface* audioInterface);
|
||||
|
||||
protected:
|
||||
AudioScriptingInterface() = default;
|
||||
|
||||
bool isSoloing() const {
|
||||
return _localAudioInterface->getAudioSolo().isSoloing();
|
||||
}
|
||||
|
||||
QVector<QUuid> getSoloList() const {
|
||||
return _localAudioInterface->getAudioSolo().getUUIDs();
|
||||
}
|
||||
|
||||
/**jsdoc
|
||||
* Add nodes to the audio solo list
|
||||
* @function Audio.addToSoloList
|
||||
* @param {QVector<QUuid>} uuidList - List of node UUIDs to add to the solo list.
|
||||
*/
|
||||
Q_INVOKABLE void addToSoloList(QVector<QUuid> uuidList) {
|
||||
_localAudioInterface->getAudioSolo().addUUIDs(uuidList);
|
||||
}
|
||||
|
||||
/**jsdoc
|
||||
* Remove nodes from the audio solo list
|
||||
* @function Audio.removeFromSoloList
|
||||
* @param {QVector<QUuid>} uuidList - List of node UUIDs to remove from the solo list.
|
||||
*/
|
||||
Q_INVOKABLE void removeFromSoloList(QVector<QUuid> uuidList) {
|
||||
_localAudioInterface->getAudioSolo().removeUUIDs(uuidList);
|
||||
}
|
||||
|
||||
/**jsdoc
|
||||
* Reset the list of soloed nodes.
|
||||
* @function Audio.resetSoloList
|
||||
*/
|
||||
Q_INVOKABLE void resetSoloList() {
|
||||
_localAudioInterface->getAudioSolo().reset();
|
||||
}
|
||||
|
||||
protected:
|
||||
AudioScriptingInterface() = default;
|
||||
|
||||
// these methods are protected to stop C++ callers from calling, but invokable from script
|
||||
|
||||
/**jsdoc
|
||||
|
|
Loading…
Reference in a new issue