mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 05:24:35 +02:00
Merge pull request #16367 from ctrlaltdavid/DOC-199
DOC-199: AudioScope JSDoc
This commit is contained in:
commit
8d6434fbca
4 changed files with 61 additions and 31 deletions
|
@ -26,19 +26,22 @@ class AudioScope : public QObject, public Dependency {
|
||||||
SINGLETON_DEPENDENCY
|
SINGLETON_DEPENDENCY
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* The AudioScope API helps control the Audio Scope features in Interface
|
* The <code>AudioScope</code> API provides facilities for an audio scope.
|
||||||
|
*
|
||||||
* @namespace AudioScope
|
* @namespace AudioScope
|
||||||
*
|
*
|
||||||
|
* @deprecated This API doesn't work properly. It is deprecated and will be removed.
|
||||||
|
*
|
||||||
* @hifi-interface
|
* @hifi-interface
|
||||||
* @hifi-client-entity
|
* @hifi-client-entity
|
||||||
* @hifi-avatar
|
* @hifi-avatar
|
||||||
*
|
*
|
||||||
* @property {number} scopeInput <em>Read-only.</em>
|
* @property {number[]} scopeInput - Scope input. <em>Read-only.</em>
|
||||||
* @property {number} scopeOutputLeft <em>Read-only.</em>
|
* @property {number[]} scopeOutputLeft - Scope left output. <em>Read-only.</em>
|
||||||
* @property {number} scopeOutputRight <em>Read-only.</em>
|
* @property {number[]} scopeOutputRight - Scope right output. <em>Read-only.</em>
|
||||||
* @property {number} triggerInput <em>Read-only.</em>
|
* @property {number[]} triggerInput - Trigger input. <em>Read-only.</em>
|
||||||
* @property {number} triggerOutputLeft <em>Read-only.</em>
|
* @property {number[]} triggerOutputLeft - Trigger left output. <em>Read-only.</em>
|
||||||
* @property {number} triggerOutputRight <em>Read-only.</em>
|
* @property {number[]} triggerOutputRight - Trigger right output. <em>Read-only.</em>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Q_PROPERTY(QVector<int> scopeInput READ getScopeInput)
|
Q_PROPERTY(QVector<int> scopeInput READ getScopeInput)
|
||||||
|
@ -58,159 +61,186 @@ public:
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Toggle.
|
||||||
* @function AudioScope.toggle
|
* @function AudioScope.toggle
|
||||||
*/
|
*/
|
||||||
void toggle() { setVisible(!_isEnabled); }
|
void toggle() { setVisible(!_isEnabled); }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Set visible.
|
||||||
* @function AudioScope.setVisible
|
* @function AudioScope.setVisible
|
||||||
* @param {boolean} visible
|
* @param {boolean} visible - Visible.
|
||||||
*/
|
*/
|
||||||
void setVisible(bool visible);
|
void setVisible(bool visible);
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get visible.
|
||||||
* @function AudioScope.getVisible
|
* @function AudioScope.getVisible
|
||||||
* @returns {boolean}
|
* @returns {boolean} Visible.
|
||||||
*/
|
*/
|
||||||
bool getVisible() const { return _isEnabled; }
|
bool getVisible() const { return _isEnabled; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Toggle pause.
|
||||||
* @function AudioScope.togglePause
|
* @function AudioScope.togglePause
|
||||||
*/
|
*/
|
||||||
void togglePause() { setPause(!_isPaused); }
|
void togglePause() { setPause(!_isPaused); }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Set pause.
|
||||||
* @function AudioScope.setPause
|
* @function AudioScope.setPause
|
||||||
* @param {boolean} paused
|
* @param {boolean} pause - Pause.
|
||||||
*/
|
*/
|
||||||
void setPause(bool paused) { _isPaused = paused; emit pauseChanged(); }
|
void setPause(bool paused) { _isPaused = paused; emit pauseChanged(); }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get pause.
|
||||||
* @function AudioScope.getPause
|
* @function AudioScope.getPause
|
||||||
* @returns {boolean}
|
* @returns {boolean} Pause.
|
||||||
*/
|
*/
|
||||||
bool getPause() { return _isPaused; }
|
bool getPause() { return _isPaused; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Toggle trigger.
|
||||||
* @function AudioScope.toggleTrigger
|
* @function AudioScope.toggleTrigger
|
||||||
*/
|
*/
|
||||||
void toggleTrigger() { _autoTrigger = !_autoTrigger; }
|
void toggleTrigger() { _autoTrigger = !_autoTrigger; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get auto trigger.
|
||||||
* @function AudioScope.getAutoTrigger
|
* @function AudioScope.getAutoTrigger
|
||||||
* @returns {boolean}
|
* @returns {boolean} Auto trigger.
|
||||||
*/
|
*/
|
||||||
bool getAutoTrigger() { return _autoTrigger; }
|
bool getAutoTrigger() { return _autoTrigger; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Set auto trigger.
|
||||||
* @function AudioScope.setAutoTrigger
|
* @function AudioScope.setAutoTrigger
|
||||||
* @param {boolean} autoTrigger
|
* @param {boolean} autoTrigger - Auto trigger.
|
||||||
*/
|
*/
|
||||||
void setAutoTrigger(bool autoTrigger) { _isTriggered = false; _autoTrigger = autoTrigger; }
|
void setAutoTrigger(bool autoTrigger) { _isTriggered = false; _autoTrigger = autoTrigger; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Set trigger values.
|
||||||
* @function AudioScope.setTriggerValues
|
* @function AudioScope.setTriggerValues
|
||||||
* @param {number} x
|
* @param {number} x - X.
|
||||||
* @param {number} y
|
* @param {number} y - Y.
|
||||||
*/
|
*/
|
||||||
void setTriggerValues(int x, int y) { _triggerValues.x = x; _triggerValues.y = y; }
|
void setTriggerValues(int x, int y) { _triggerValues.x = x; _triggerValues.y = y; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Set triggered.
|
||||||
* @function AudioScope.setTriggered
|
* @function AudioScope.setTriggered
|
||||||
* @param {boolean} triggered
|
* @param {boolean} triggered - Triggered.
|
||||||
*/
|
*/
|
||||||
void setTriggered(bool triggered) { _isTriggered = triggered; }
|
void setTriggered(bool triggered) { _isTriggered = triggered; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get triggered.
|
||||||
* @function AudioScope.getTriggered
|
* @function AudioScope.getTriggered
|
||||||
* @returns {boolean}
|
* @returns {boolean} Triggered.
|
||||||
*/
|
*/
|
||||||
bool getTriggered() { return _isTriggered; }
|
bool getTriggered() { return _isTriggered; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get frames per second.
|
||||||
* @function AudioScope.getFramesPerSecond
|
* @function AudioScope.getFramesPerSecond
|
||||||
* @returns {number}
|
* @returns {number} Frames per second.
|
||||||
*/
|
*/
|
||||||
float getFramesPerSecond();
|
float getFramesPerSecond();
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get frames per scope.
|
||||||
* @function AudioScope.getFramesPerScope
|
* @function AudioScope.getFramesPerScope
|
||||||
* @returns {number}
|
* @returns {number} Frames per scope.
|
||||||
*/
|
*/
|
||||||
int getFramesPerScope() { return _framesPerScope; }
|
int getFramesPerScope() { return _framesPerScope; }
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Select five frames audio scope.
|
||||||
* @function AudioScope.selectAudioScopeFiveFrames
|
* @function AudioScope.selectAudioScopeFiveFrames
|
||||||
*/
|
*/
|
||||||
void selectAudioScopeFiveFrames();
|
void selectAudioScopeFiveFrames();
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Select twenty frames audio scope.
|
||||||
* @function AudioScope.selectAudioScopeTwentyFrames
|
* @function AudioScope.selectAudioScopeTwentyFrames
|
||||||
*/
|
*/
|
||||||
void selectAudioScopeTwentyFrames();
|
void selectAudioScopeTwentyFrames();
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Select fifty frames audio scope.
|
||||||
* @function AudioScope.selectAudioScopeFiftyFrames
|
* @function AudioScope.selectAudioScopeFiftyFrames
|
||||||
*/
|
*/
|
||||||
void selectAudioScopeFiftyFrames();
|
void selectAudioScopeFiftyFrames();
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get scope input.
|
||||||
* @function AudioScope.getScopeInput
|
* @function AudioScope.getScopeInput
|
||||||
* @returns {number[]}
|
* @returns {number[]} Scope input.
|
||||||
*/
|
*/
|
||||||
QVector<int> getScopeInput() { return _scopeInputData; };
|
QVector<int> getScopeInput() { return _scopeInputData; };
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get scope left output.
|
||||||
* @function AudioScope.getScopeOutputLeft
|
* @function AudioScope.getScopeOutputLeft
|
||||||
* @returns {number[]}
|
* @returns {number[]} Scope left output.
|
||||||
*/
|
*/
|
||||||
QVector<int> getScopeOutputLeft() { return _scopeOutputLeftData; };
|
QVector<int> getScopeOutputLeft() { return _scopeOutputLeftData; };
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get scope right output.
|
||||||
* @function AudioScope.getScopeOutputRight
|
* @function AudioScope.getScopeOutputRight
|
||||||
* @returns {number[]}
|
* @returns {number[]} Scope right output.
|
||||||
*/
|
*/
|
||||||
QVector<int> getScopeOutputRight() { return _scopeOutputRightData; };
|
QVector<int> getScopeOutputRight() { return _scopeOutputRightData; };
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get trigger input.
|
||||||
* @function AudioScope.getTriggerInput
|
* @function AudioScope.getTriggerInput
|
||||||
* @returns {number[]}
|
* @returns {number[]} Trigger input.
|
||||||
*/
|
*/
|
||||||
QVector<int> getTriggerInput() { return _triggerInputData; };
|
QVector<int> getTriggerInput() { return _triggerInputData; };
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get left trigger output.
|
||||||
* @function AudioScope.getTriggerOutputLeft
|
* @function AudioScope.getTriggerOutputLeft
|
||||||
* @returns {number[]}
|
* @returns {number[]} Left trigger output.
|
||||||
*/
|
*/
|
||||||
QVector<int> getTriggerOutputLeft() { return _triggerOutputLeftData; };
|
QVector<int> getTriggerOutputLeft() { return _triggerOutputLeftData; };
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Get right trigger output.
|
||||||
* @function AudioScope.getTriggerOutputRight
|
* @function AudioScope.getTriggerOutputRight
|
||||||
* @returns {number[]}
|
* @returns {number[]} Right trigger output.
|
||||||
*/
|
*/
|
||||||
QVector<int> getTriggerOutputRight() { return _triggerOutputRightData; };
|
QVector<int> getTriggerOutputRight() { return _triggerOutputRightData; };
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Set local echo.
|
||||||
* @function AudioScope.setLocalEcho
|
* @function AudioScope.setLocalEcho
|
||||||
* @parm {boolean} localEcho
|
* @parm {boolean} localEcho - Local echo.
|
||||||
*/
|
*/
|
||||||
void setLocalEcho(bool localEcho);
|
void setLocalEcho(bool localEcho);
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Set server echo.
|
||||||
* @function AudioScope.setServerEcho
|
* @function AudioScope.setServerEcho
|
||||||
* @parm {boolean} serverEcho
|
* @parm {boolean} serverEcho - Server echo.
|
||||||
*/
|
*/
|
||||||
void setServerEcho(bool serverEcho);
|
void setServerEcho(bool serverEcho);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Triggered when pause changes.
|
||||||
* @function AudioScope.pauseChanged
|
* @function AudioScope.pauseChanged
|
||||||
* @returns {Signal}
|
* @returns {Signal}
|
||||||
*/
|
*/
|
||||||
void pauseChanged();
|
void pauseChanged();
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
* Triggered when scope is triggered.
|
||||||
* @function AudioScope.triggered
|
* @function AudioScope.triggered
|
||||||
* @returns {Signal}
|
* @returns {Signal}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -275,7 +275,7 @@ class MyAvatar : public Avatar {
|
||||||
* @property {number} analogPlusSprintSpeed - The sprint (run) speed of your avatar for the "AnalogPlus" control scheme.
|
* @property {number} analogPlusSprintSpeed - The sprint (run) speed of your avatar for the "AnalogPlus" control scheme.
|
||||||
* @property {MyAvatar.SitStandModelType} userRecenterModel - Controls avatar leaning and recentering behavior.
|
* @property {MyAvatar.SitStandModelType} userRecenterModel - Controls avatar leaning and recentering behavior.
|
||||||
* @property {number} isInSittingState - <code>true</code> if the user wearing the HMD is determined to be sitting
|
* @property {number} isInSittingState - <code>true</code> if the user wearing the HMD is determined to be sitting
|
||||||
* (avatar leaning is disabled, recenntering is enabled), <code>false</code> if the user wearing the HMD is
|
* (avatar leaning is disabled, recentering is enabled), <code>false</code> if the user wearing the HMD is
|
||||||
* determined to be standing (avatar leaning is enabled, and avatar recenters if it leans too far).
|
* determined to be standing (avatar leaning is enabled, and avatar recenters if it leans too far).
|
||||||
* If <code>userRecenterModel == 2</code> (i.e., auto) the property value automatically updates as the user sits
|
* If <code>userRecenterModel == 2</code> (i.e., auto) the property value automatically updates as the user sits
|
||||||
* or stands, unless <code>isSitStandStateLocked == true</code>. Setting the property value overrides the current
|
* or stands, unless <code>isSitStandStateLocked == true</code>. Setting the property value overrides the current
|
||||||
|
|
|
@ -25,10 +25,10 @@ class LaserPointerScriptingInterface : public QObject, public Dependency {
|
||||||
* represent objects for repeatedly calculating ray intersections with avatars, entities, and overlays. Ray pointers can also
|
* represent objects for repeatedly calculating ray intersections with avatars, entities, and overlays. Ray pointers can also
|
||||||
* be configured to generate events on entities and overlays intersected.
|
* be configured to generate events on entities and overlays intersected.
|
||||||
*
|
*
|
||||||
* <p class="important">Deprecated: This API is deprecated. Use {@link Pointers} instead.
|
|
||||||
*
|
|
||||||
* @namespace LaserPointers
|
* @namespace LaserPointers
|
||||||
*
|
*
|
||||||
|
* @deprecated This API is deprecated and will be removed. Use {@link Pointers} instead.
|
||||||
|
*
|
||||||
* @hifi-interface
|
* @hifi-interface
|
||||||
* @hifi-client-entity
|
* @hifi-client-entity
|
||||||
* @hifi-avatar
|
* @hifi-avatar
|
||||||
|
|
|
@ -26,7 +26,7 @@ exports.handlers = {
|
||||||
'../../assignment-client/src/octree',
|
'../../assignment-client/src/octree',
|
||||||
'../../interface/src',
|
'../../interface/src',
|
||||||
'../../interface/src/assets',
|
'../../interface/src/assets',
|
||||||
'../../interface/src/audio',
|
//'../../interface/src/audio', Exlude AudioScope API from output.
|
||||||
'../../interface/src/avatar',
|
'../../interface/src/avatar',
|
||||||
'../../interface/src/commerce',
|
'../../interface/src/commerce',
|
||||||
'../../interface/src/devices',
|
'../../interface/src/devices',
|
||||||
|
|
Loading…
Reference in a new issue