mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
Add Stats.audioInboundPPS property and signal
And deprecate misnamed originals.
This commit is contained in:
parent
c0dbec7940
commit
078c30b696
2 changed files with 19 additions and 1 deletions
|
@ -261,6 +261,7 @@ void Stats::updateStats(bool force) {
|
|||
STAT_UPDATE(audioMixerInPps, audioMixerNode->getInboundPPS());
|
||||
STAT_UPDATE(audioMixerOutKbps, (int)roundf(audioMixerNode->getOutboundKbps()));
|
||||
STAT_UPDATE(audioMixerOutPps, audioMixerNode->getOutboundPPS());
|
||||
STAT_UPDATE(audioInboundPPS, (int)audioClient->getAudioInboundPPS());
|
||||
STAT_UPDATE(audioAudioInboundPPS, (int)audioClient->getAudioInboundPPS());
|
||||
STAT_UPDATE(audioSilentInboundPPS, (int)audioClient->getSilentInboundPPS());
|
||||
STAT_UPDATE(audioOutboundPPS, (int)audioClient->getAudioOutboundPPS());
|
||||
|
@ -274,6 +275,7 @@ void Stats::updateStats(bool force) {
|
|||
STAT_UPDATE(audioMixerOutPps, -1);
|
||||
STAT_UPDATE(audioOutboundPPS, -1);
|
||||
STAT_UPDATE(audioSilentOutboundPPS, -1);
|
||||
STAT_UPDATE(audioInboundPPS, -1);
|
||||
STAT_UPDATE(audioAudioInboundPPS, -1);
|
||||
STAT_UPDATE(audioSilentInboundPPS, -1);
|
||||
}
|
||||
|
|
|
@ -174,10 +174,16 @@ private: \
|
|||
* second.
|
||||
* <code>-1</code> if not connected to an audio mixer.
|
||||
* <em>Read-only.</em>
|
||||
* @property {number} audioAudioInboundPPS - The number of non-silent audio packets being received by the user, in packets per
|
||||
* @property {number} audioInboundPPS - The number of non-silent audio packets being received by the user, in packets per
|
||||
* second.
|
||||
* <code>-1</code> if not connected to an audio mixer.
|
||||
* <em>Read-only.</em>
|
||||
* @property {number} audioAudioInboundPPS - The number of non-silent audio packets being received by the user, in packets per
|
||||
* second.
|
||||
* <code>-1</code> if not connected to an audio mixer.
|
||||
* <em>Read-only.</em>
|
||||
* <p class="important">Deprecated: This property is deprecated and will be removed. Use <code>audioInboundPPS</code>
|
||||
* instead.</p>
|
||||
* @property {number} audioSilentInboundPPS - The number of silent audio packets being received by the user, in packets per
|
||||
* second.
|
||||
* <code>-1</code> if not connected to an audio mixer.
|
||||
|
@ -506,6 +512,7 @@ class Stats : public QQuickItem {
|
|||
STATS_PROPERTY(int, audioMixerPps, 0)
|
||||
STATS_PROPERTY(int, audioOutboundPPS, 0)
|
||||
STATS_PROPERTY(int, audioSilentOutboundPPS, 0)
|
||||
STATS_PROPERTY(int, audioInboundPPS, 0)
|
||||
STATS_PROPERTY(int, audioAudioInboundPPS, 0)
|
||||
STATS_PROPERTY(int, audioSilentInboundPPS, 0)
|
||||
STATS_PROPERTY(int, audioPacketLoss, 0)
|
||||
|
@ -992,10 +999,19 @@ signals:
|
|||
*/
|
||||
void audioSilentOutboundPPSChanged();
|
||||
|
||||
/**jsdoc
|
||||
* Triggered when the value of the <code>audioInboundPPS</code> property changes.
|
||||
* @function Stats.audioInboundPPSChanged
|
||||
* @returns {Signal}
|
||||
*/
|
||||
void audioInboundPPSChanged();
|
||||
|
||||
/**jsdoc
|
||||
* Triggered when the value of the <code>audioAudioInboundPPS</code> property changes.
|
||||
* @function Stats.audioAudioInboundPPSChanged
|
||||
* @returns {Signal}
|
||||
* @deprecated This signal is deprecated and will be removed. Use
|
||||
* {@link Stats.audioInboundPPSChanged|audioInboundPPSChanged} instead.
|
||||
*/
|
||||
void audioAudioInboundPPSChanged();
|
||||
|
||||
|
|
Loading…
Reference in a new issue