Stephen Birarda
f2ecce6043
use safer domain settings request in audio-mixer
2015-11-18 15:13:29 -08:00
Stephen Birarda
6080654d7e
zero out the pre-mix samples for each stream
2015-10-26 15:48:05 -07:00
Ryan Huffman
9ddcfdf94d
Cleanup PacketReceier and ReceivedMessage
2015-10-16 09:21:10 -07:00
Ryan Huffman
7682ab00e3
Add ReceivedMessage and receive progress
2015-10-15 14:09:53 -07:00
Atlante45
179ee73e26
Merge branch 'master' of https://github.com/highfidelity/hifi into update_protocol
2015-08-26 16:50:33 +02:00
Stephen Birarda
d76e8a7e48
remove double settings request for testing
2015-08-25 11:27:31 -07:00
Stephen Birarda
f7799bcf8f
add TODO for settings fail, cleanup
2015-08-24 17:02:47 -07:00
Atlante45
62c76d0332
registerListenerForTypes optimisations
2015-08-20 14:56:35 +02:00
Stephen Birarda
6860f3d126
add readWithoutCopy for clarity in Packet read
2015-08-19 14:32:26 -07:00
Stephen Birarda
052978898e
resolve conflicts on merge with upstream master
2015-08-05 11:16:20 -07:00
Stephen Birarda
fc80e427b9
remove names from audio-mixer jitter calc comments
2015-07-30 11:08:45 -07:00
Stephen Birarda
9e7fb9ae16
shuffle Packet headers, use static enum for PacketType
2015-07-23 13:56:47 -07:00
Stephen Birarda
9556fecbe2
initial changes to make _nodeSocket a udt::Socket
2015-07-20 17:10:22 -07:00
Stephen Birarda
1752d5e7ca
fix mix packet sample copy bug
2015-07-15 17:52:37 -07:00
Stephen Birarda
863cc3390a
fix send of mixed audio stream packet from AM
2015-07-15 17:41:00 -07:00
Stephen Birarda
e127c5c06d
rename Packet methods for clarity
2015-07-15 10:40:40 -07:00
Atlante45
fbb6a94579
Merge branch 'receive_packets' of https://github.com/huffman/hifi into protocol
2015-07-14 16:36:28 -07:00
Ryan Huffman
bd345cdccd
Merge branch 'atp' of github.com:birarda/hifi into receive_packets
...
Conflicts:
libraries/networking/src/PacketReceiver.cpp
2015-07-14 15:59:16 -07:00
Stephen Birarda
789235b8c7
make NodeList deleter be deleteLater
2015-07-14 15:28:38 -07:00
Ryan Huffman
56b5c9acff
Merge branch 'atp' of github.com:birarda/hifi into receive_packets
...
Conflicts:
assignment-client/src/entities/EntityServer.cpp
domain-server/src/DomainServer.cpp
2015-07-14 14:53:45 -07:00
Stephen Birarda
fbd287472d
make NodeData parseData take only packet
2015-07-14 14:09:00 -07:00
Stephen Birarda
0637f589b5
add PacketListener to help unregister for packets
2015-07-14 13:52:38 -07:00
Ryan Huffman
0edc909818
Merge branch 'protocol' of github.com:birarda/hifi into receive_packets
...
Conflicts:
assignment-client/src/audio/AudioMixer.cpp
interface/src/Application.cpp
libraries/networking/src/Packet.cpp
2015-07-14 10:21:31 -07:00
Atlante45
44c5d4a2bf
Couple fixes SharedNodePointer > Node&
2015-07-13 15:29:41 -07:00
Atlante45
c80df94b06
Update includes for moved files
2015-07-13 15:28:55 -07:00
Stephen Birarda
f06636d45e
repairs for other ThreadedAssignment subclasses
2015-07-13 15:16:55 -07:00
Stephen Birarda
26be492475
use same listener for many packets in AudioMixer
2015-07-13 14:46:56 -07:00
Stephen Birarda
d242f5d5d9
repair AudioMixerClientData parseData
2015-07-13 14:35:03 -07:00
Ryan Huffman
9de6828b03
Remove readPendingDatagram from AudioMixer
2015-07-13 14:24:06 -07:00
Ryan Huffman
cdbcaf0f7f
Fix AudioMixer compilation errors
2015-07-13 12:06:12 -07:00
Atlante45
957e6394a9
sendPacket function take Node& not a pointer
2015-07-13 11:57:20 -07:00
Ryan Huffman
bfb878210f
Fix compilation errors in AudioMixer
2015-07-10 17:27:45 -07:00
Ryan Huffman
910836fa5a
Remove readPendingDatagrams from AudioMixer
2015-07-10 16:14:40 -07:00
Ryan Huffman
74afbd7de7
Fix AudioMixer packetReceiver calls
2015-07-10 14:22:46 -07:00
Ryan Huffman
99121a3a20
Fix AudioMixer not using PacketReceiver correctly
2015-07-10 12:22:53 -07:00
Ryan Huffman
c841867044
Update AudioMixer to use PacketReceiver
2015-07-10 09:37:24 -07:00
Atlante45
c77310019d
Some .get() cleanup
2015-07-09 14:03:32 -07:00
Atlante45
605b004514
Assigment client compile fixes
2015-07-09 11:19:36 -07:00
Stephen Birarda
74940a2132
replace lingering PacketTypes in old format
2015-07-08 10:18:13 -07:00
Stephen Birarda
ff487ee092
move the AudioClient mix packet
2015-07-07 16:30:50 -07:00
Ryan Huffman
3690ecc28f
Add std::move to sendPacket calls
2015-07-07 16:24:11 -07:00
Stephen Birarda
ffa6edc904
fix spaces created by xcode find/replace
2015-07-07 15:01:19 -07:00
Stephen Birarda
f6cd67f75e
repairs to stats packet in AudioMixerClientData
2015-07-07 14:57:39 -07:00
Stephen Birarda
171ebf5437
fix for mix packet sizes in audio
2015-07-07 14:51:21 -07:00
Stephen Birarda
6760b048b6
fix for initialization of mute packet
2015-07-07 14:50:37 -07:00
Stephen Birarda
e7fee26d1a
give specific packet size for audio env packet
2015-07-07 14:50:05 -07:00
Stephen Birarda
9a31b22243
use NLPacket and sendPacket for audio stream stats
2015-07-06 17:48:21 -07:00
Stephen Birarda
269bea65fb
fix AssignmentClientMonitor and AudioMixer to use NLPacket
2015-07-06 17:20:08 -07:00
Stephen Birarda
37fd954066
remove used of PacketPayload in AudioMixer
2015-07-06 17:15:01 -07:00
Stephen Birarda
9a521fee47
change audio environment packet creation
2015-07-06 16:53:53 -07:00
Stephen Birarda
672c5a8414
use new packet creation for client audio
2015-07-06 16:49:48 -07:00
Stephen Birarda
b3c3e5a6c8
more PacketType to PacketType::Value replacements
2015-07-02 16:49:19 -07:00
Stephen Birarda
0d64e82fe2
replace PacketType declarations with PacketType::Value
2015-07-02 16:38:52 -07:00
Stephen Birarda
a77cf4fb7f
fix audio-mixer shutdown on UNIX/OS X
2015-06-25 16:34:38 -07:00
Seth Alves
508ae276c6
enable -Wdouble-promotion
2015-06-16 18:23:10 -07:00
Stephen Birarda
81460e48f4
fix for sticking windows audio-mixer
2015-06-11 17:25:27 -07:00
Stephen Birarda
ca87d64dc7
fix for audio-mixer shutdown hang, removing spaces
2015-05-13 12:03:21 -07:00
Stephen Birarda
8c6715e4fc
resolve conflicts on merge with upstream/master
2015-05-11 11:10:22 -07:00
Stephen Birarda
d75d204ff6
standardize cleanup of ThreadedAssignments
2015-05-07 17:03:43 -07:00
Stephen Birarda
bfccf02912
use lamdbas for linkedDataCreateCallback
2015-05-07 15:37:02 -07:00
Stephen Birarda
6b3cf1ba4a
remove dependency of PacketHeaders on NodeList
2015-05-05 12:19:42 -07:00
Stephen Birarda
d602c71346
cleanup audio-mixer stats, add username interpolation
2015-05-01 16:12:46 -07:00
Stephen Birarda
842886d0fc
add back read_pending_datagrams stats
2015-04-29 16:28:47 -07:00
Stephen Birarda
68998f4423
cleanup AudioMixer stats to be properly nested
2015-04-28 18:19:16 -07:00
Stephen Birarda
77be0012cf
cleanup stats packaging in AudioMixer
2015-04-28 15:35:51 -07:00
Atlante45
604a13f8ad
Only editor can mute environment
2015-04-15 17:04:59 +02:00
ZappoMan
e87e0a1e0b
some cleanup of dead code related to timers
2015-03-11 16:27:04 -07:00
Atlante45
e79e1a547f
Merge branch 'master' of https://github.com/highfidelity/hifi into reverb_smoothing
...
Conflicts:
libraries/audio-client/src/AudioClient.cpp
libraries/audio-client/src/AudioClient.h
2015-02-10 16:08:34 +01:00
Atlante45
1cfd98b2d7
Name threads
2015-01-31 00:50:12 -08:00
Atlante45
bd9668b9fa
Change WetLevel modulation
2015-01-15 18:23:43 -08:00
Atlante45
46db3277eb
Merge branch 'master' of https://github.com/highfidelity/hifi into reverb_smoothing
2015-01-14 17:41:14 -08:00
Atlante45
692d9d060e
Merge branch 'master' of https://github.com/highfidelity/hifi into reverb_smoothing
...
Conflicts:
interface/src/Audio.cpp
interface/src/Audio.h
interface/src/ModelUploader.cpp
2015-01-14 17:14:18 -08:00
Atlante45
2a82ff9768
Merge branch 'master' of https://github.com/highfidelity/hifi into applications_diet_cpp11
...
Conflicts:
assignment-client/src/voxels/VoxelServer.cpp
interface/src/Application.cpp
interface/src/Audio.cpp
interface/src/DatagramProcessor.cpp
interface/src/Menu.cpp
interface/src/Util.cpp
interface/src/avatar/MyAvatar.cpp
interface/src/ui/ApplicationOverlay.cpp
interface/src/ui/PreferencesDialog.cpp
libraries/networking/src/NodeList.cpp
libraries/shared/src/DependencyManager.h
2015-01-13 11:03:14 -08:00
David Rowe
07b30da2ac
Fix miscellaneous types and casts
2015-01-08 13:44:51 -08:00
Stephen Birarda
c7a5f3c86c
resolve conflicts and merge with upstream master
2014-12-29 10:59:42 -07:00
Clement
6f52cf6ee9
Merge branch 'master' of https://github.com/highfidelity/hifi into reverb_smoothing
...
Conflicts:
interface/src/Audio.cpp
2014-12-29 09:48:38 -08:00
Atlante45
0bd9ed469e
Changed NodeList::getInstance() calls to use the DM
2014-12-17 15:28:25 -08:00
Stephen Birarda
1db12453d4
move audio stats into member of Audio
2014-12-16 14:47:24 -08:00
Stephen Birarda
bb77986f1a
use new AudioConstants in AudioMixer classes
2014-12-16 11:56:56 -08:00
Atlante45
1f35e130ef
Smooth reverb wet level on room edges
2014-12-11 12:33:40 -08:00
Stephen Birarda
5c3e90f64f
resolve conflicts on merge with upstream master
2014-12-03 13:11:56 -08:00
Atlante45
ae3bcc8f06
No more .f
2014-11-19 16:53:39 -08:00
Atlante45
0528a9ff9b
Remove forgotten setLastMuted
2014-11-17 10:49:35 -08:00
Atlante45
4615afe034
Remove lastMuted member in AvatarAudioStream
2014-11-17 10:32:28 -08:00
Atlante45
46eebe9d40
Give noisy mutes their own packet type
2014-11-17 10:26:47 -08:00
Stephen Birarda
f27367a0c1
fix audio-mixer muting for injectors
2014-11-13 15:00:40 -08:00
Philip Rosedale
17d0f247d6
Switch muting threshold to 0.003 to be a bit less aggressive
2014-11-11 14:10:44 -08:00
Philip Rosedale
d9141b4010
Merge pull request #3750 from Atlante45/reverb_for_own_voice
...
Reverb for own voice
2014-11-11 10:52:26 -08:00
Atlante45
a868661a25
Extra space
2014-11-10 15:51:31 -08:00
Atlante45
02b401701f
Set a minimum mute intervalle in the mixer
2014-11-10 15:46:36 -08:00
Atlante45
edec4d1298
Mixer send mute when if too noisy
2014-11-10 14:10:29 -08:00
Stephen Birarda
2ca673175a
rename StdDev to StDev, patch its leak
2014-11-07 17:15:54 -08:00
Philip Rosedale
12eb67c734
fix bug with audio mixer muting too often
2014-11-07 14:18:57 -08:00
Stephen Birarda
0f32346324
resolve conflicts on merge with upstream master
2014-11-07 09:10:12 -08:00
Atlante45
4dc40c9e84
Merge branch 'master' of https://github.com/highfidelity/hifi into reverb_for_own_voice
2014-11-06 23:17:53 +01:00
Stephen Birarda
1a953b5906
migrate node hash calls from AudioMixer to new tbb format
2014-11-06 13:53:10 -08:00
AndrewMeadows
843aaf4e95
Merge pull request #3747 from PhilipRosedale/master
...
First pass audio mixer muting, improved tour guide, hair, injector loudness in JS
2014-11-06 10:36:46 -08:00
Atlante45
44cb35778a
Move AudioEnv packet send to own function
...
Audio environment packet moved to own function and out of the
if/else
So it is now sent all the time, now matter if there are other
people around you
2014-11-06 17:42:57 +01:00
Philip Rosedale
688bd0f34f
first pass audio mixer automatic muting of noisy streams, tour guide improvements, new lightExample.js, hair hangs over cone 'body'
2014-11-05 16:58:58 -08:00
Stephen Birarda
8a72cdd59d
leverage new libcuckoo hash outside LimitedNodeList
2014-11-05 15:09:54 -08:00
Atlante45
fb33634171
ignore penumbra member variable
2014-11-04 16:44:39 +01:00
Atlante45
c7b8f7a792
remove debug #if
2014-11-04 14:00:02 +01:00
Philip Rosedale
cf121a9fe5
Merge branch 'master' of https://github.com/worklist/hifi
2014-10-28 20:22:40 -07:00
Philip Rosedale
f10aeaffab
working on audio mixer muting
2014-10-28 20:22:33 -07:00
Philip Rosedale
e5c9ad4525
Merge pull request #3661 from Atlante45/reverb_fixed
...
Audio Environment packets
2014-10-28 18:11:14 -07:00
Stephen Birarda
d3bbd251db
move Logging to LogHandler
2014-10-28 13:59:23 -07:00
Atlante45
12f0237dc7
Cleanup
2014-10-24 15:02:09 -07:00
Atlante45
847ef64b66
move audio env data over to new packet
2014-10-24 14:27:55 -07:00
Atlante45
529a7e0369
CR
2014-10-23 22:55:40 -07:00
Atlante45
d4ec337cae
Don't send reverb data as often
2014-10-23 13:39:56 -07:00
Atlante45
9c45055aeb
Fixed for no/multiple reverb zones
2014-10-22 23:32:07 -07:00
Atlante45
8ccbfcf695
code cleanup
2014-10-22 16:41:41 -07:00
Atlante45
6f9557fe67
Do not destroy script reverb settings
2014-10-20 15:06:02 -07:00
Atlante45
37b47b52d3
Stream reverb settings from mixer to interface
2014-10-20 11:49:57 -07:00
Atlante45
26b1e8fc29
grab reverb settings on mixer side
2014-10-16 22:46:40 -07:00
Atlante45
9019ae4f89
Merge branch 'master' of https://github.com/highfidelity/hifi into attenuation_zones
...
Conflicts:
domain-server/resources/web/js/settings.js
2014-10-16 10:55:46 -07:00
Stephen Birarda
72f0bc61a2
remove some extra spaces
2014-10-15 14:54:28 -07:00
Stephen Birarda
56ad97db17
remove mmintrin include that isn't needed anymore
2014-10-15 14:26:03 -07:00
Atlante45
b227014510
Stupid mistake
2014-10-14 14:14:59 -07:00
Atlante45
bbd1afc55c
Switch hash to an array
2014-10-13 13:50:06 -07:00
Atlante45
6bde4b8324
Move break
2014-10-13 10:24:01 -07:00
Atlante45
d8c60a78bb
Fix stupid variable swap
2014-10-10 15:32:29 -07:00
Atlante45
7e8915fed8
Break out of double loop
2014-10-10 10:08:22 -07:00
Atlante45
0aafd23c7f
CR
2014-10-10 10:00:35 -07:00
Atlante45
03555174ef
Remove TREE_SCALE factor _ update attenuation
2014-10-09 18:54:21 -07:00
Atlante45
90c5c7f43c
Attenuation coefficients parsing
2014-10-09 16:41:48 -07:00
Atlante45
0fa95ba61d
Removed Unattenuated zones from mixer
2014-10-09 14:46:32 -07:00
Atlante45
06bd9ba16e
Split settings parsing according to new structure
2014-10-09 14:39:31 -07:00
Atlante45
981666cb38
Moved audioMixer setting parsing to its own function
2014-10-09 11:49:55 -07:00
Stephen Birarda
0fd7ec34fc
remove an unused const
2014-10-06 12:34:12 -07:00
Stephen Birarda
909a6e89a8
resolve conflicts on merge with upstream master
2014-09-30 13:50:04 -07:00
Atlante45
4c34571570
Removed debug
2014-09-30 12:54:58 -07:00
Atlante45
4e7bf0487b
Add attenuation setting on DS page
2014-09-30 12:50:50 -07:00
Stephen Birarda
68a70cc914
don't use dashes in settings JSON keys
2014-09-30 09:40:54 -07:00
Andrzej Kapolka
533d59becc
Merge pull request #3499 from Atlante45/radio_js
...
Stereo fix
2014-09-26 20:04:55 -07:00
Atlante45
dfe70ed2e3
Initialize InjectedAudioStream with correct stereo value
2014-09-26 19:23:36 -07:00
Stephen Birarda
e3a85299ce
fix setting parsing in AudioMixer for new format
2014-09-26 13:17:11 -07:00
Atlante45
fee01f2c73
Fixed unknow function
2014-09-25 15:26:13 -07:00
Atlante45
94edf2c900
Defaulted penumbra filter to true
2014-09-24 15:45:43 -07:00
Atlante45
22b39fd62a
Decreased penumbra filter values
2014-09-23 15:17:46 -07:00
ZappoMan
6f73da7d44
CR feedback
2014-09-18 15:19:03 -07:00
ZappoMan
bd23b8b8b9
completely remove _penumbraFilter from AudioMixer class
2014-09-18 15:01:06 -07:00
ZappoMan
864c1c88a7
fix the filter with delay and add per listener source pair data
2014-09-18 14:58:44 -07:00
ZappoMan
ab447e20ee
move filter to single instance in mixer, and do filtering on pre-mix buffer not the mixed buffer
2014-09-17 12:48:47 -07:00
ZappoMan
c30ef9c331
Revert "flip default for enable filter to be disable filter to work around settings bug"
...
This reverts commit 2a9d8d9238
.
2014-09-17 08:52:23 -07:00
ZappoMan
2a9d8d9238
flip default for enable filter to be disable filter to work around settings bug
2014-09-17 07:04:16 -07:00
ZappoMan
9494af6153
fix static when rotating away from source
2014-09-16 20:40:09 -07:00
ZappoMan
b50c2a37c2
Merge branch 'master' of https://github.com/highfidelity/hifi into sendPositonOrientationInSilentPackets
2014-09-16 13:11:00 -07:00
ZappoMan
9cbc53abc3
pack position and orientation in silent frames
2014-09-16 13:06:46 -07:00
Philip Rosedale
35b772bc4d
fixes from review
2014-09-16 09:24:23 -07:00
Philip Rosedale
1514b58700
add detect if source is self
2014-09-16 01:30:25 -07:00
Philip Rosedale
62b21f52af
fix for sharp change in attenuation when too near a source
2014-09-16 01:18:42 -07:00
Craig Hansen-Sturm
ea6f89c9f4
head penumbra filter tuning / head penumbra filter now turned on by default
2014-09-15 18:46:10 -07:00
Craig Hansen-Sturm
09370840d5
coding standard
2014-09-13 00:35:02 -07:00
Craig Hansen-Sturm
2f8ef6b4fb
new head penumbra gain calculations
2014-09-12 18:31:33 -07:00
Andrew Meadows
2f03f0fb0d
removed unused variables
2014-09-05 17:00:23 -07:00
Craig Hansen-Sturm
fc0a206985
code review comments
2014-09-04 22:57:02 -07:00
Craig Hansen-Sturm
fe0b9825d0
new coordinate calculations for head penumbra filter
2014-09-04 18:10:29 -07:00
Craig Hansen-Sturm
3e3090f1ea
coding standard
2014-08-28 11:12:17 -07:00
Craig Hansen-Sturm
0881959750
left/right channels of head shadow filter now have independent gain + implemented all-pass filter
2014-08-27 17:30:11 -07:00
Craig Hansen-Sturm
40a5ff6b9e
ZappoMan deadcode analysis applied
2014-08-27 10:56:44 -07:00
Craig Hansen-Sturm
e941e58626
merge HEAD with PR-3281
2014-08-26 18:25:40 -07:00
Craig Hansen-Sturm
47bc183439
SQUARE_ROOT_OF_TWO renamed SQUARE_ROOT_OF_TWO_OVER_TWO
2014-08-26 11:32:05 -07:00
Craig Hansen-Sturm
5f695664a6
add explicit constants inline for documebntation purposes
2014-08-26 11:26:39 -07:00
Craig Hansen-Sturm
950862839e
added high-shelf and low-shelf filters, positional audio now uses high-shelf filter, significant reformatting/renaming of AudioFilter.h for coding standard
2014-08-25 18:17:32 -07:00
Craig Hansen-Sturm
4f346bfe62
addresses more coding-standard spacing issues
2014-08-25 13:07:52 -07:00
Craig Hansen-Sturm
bf6d34b6f3
windows/linux build break + addresses zappoman review comments
2014-08-25 11:43:49 -07:00
Craig Hansen-Sturm
4cd1f4afef
add support for head-shadow/penumbra filter for positional audio streams
2014-08-24 22:17:07 -07:00
Stephen Birarda
2e6350832c
perfom packet verification on same thread as NodeList hash
2014-08-15 09:35:03 -07:00
Stephen Birarda
1e65a093f2
decouple audio-mixer packet receipt from main thread
2014-08-14 12:37:57 -07:00
wangyix
e50bd1bed9
separated readpendingdatagrams domain page stats
2014-08-13 17:57:04 -07:00
wangyix
047c4dff65
removed unused var
2014-08-13 17:05:53 -07:00
wangyix
81fa5ed41f
readPendingDatagrams stats printed and sent to domain page
...
jittertester now prints out send or receive error msgs
2014-08-13 16:48:06 -07:00
wangyix
b17c9102c9
added stats for readPendingDatagrams in audiomixer
2014-08-13 13:30:02 -07:00
wangyix
db0fbcab97
merge with upstream
2014-08-13 11:09:55 -07:00
wangyix
a405cd9a72
repetition-with-fade ready for commit
2014-08-13 11:01:15 -07:00
wangyix
746893cc94
updateLastOutputLoudnessAndTrailingLoudness
2014-08-13 10:48:47 -07:00
wangyix
ddc8bec1ec
moved lastpopframeloudness calculation to checkBuffersBeforeFrameSend
2014-08-13 10:41:25 -07:00
wangyix
f34f0a719b
fixed lastPopOutput null ptr errors for frame loudness check
2014-08-13 10:26:01 -07:00
wangyix
23b3d06260
forgot null check for AudioMixer repeat mix of lastPopOutput
2014-08-13 09:46:49 -07:00
wangyix
0007104b6a
stats working
2014-08-12 12:58:30 -07:00
wangyix
446c888242
AudioMixer print added; untested
2014-08-12 12:22:32 -07:00
wangyix
8565e93ba4
more test code (10% drop both directions)
2014-08-12 10:50:34 -07:00
wangyix
a31d53544b
repetition-with-fade seems good; continue testing
2014-08-11 17:58:01 -07:00
wangyix
e276d15ed4
repetition-with-fade implemented; testing interface crash
2014-08-11 16:25:43 -07:00
wangyix
1f011bfe9d
repetition-with-fade option added, not implemented
2014-08-11 11:22:37 -07:00
wangyix
0dfe0b1f2a
merged with master
2014-08-08 13:32:27 -07:00
wangyix
fd3425dfd1
knobs confirmed working
2014-08-07 17:05:23 -07:00
wangyix
1153a76ab1
new option knobs added, no new behavior yet
2014-08-07 16:37:36 -07:00
wangyix
357ba92181
working towards more dials for InboundAdioStream
2014-08-07 12:41:09 -07:00
wangyix
4d7d6f1e25
changed downstream re-sampling to occur right after parsing packet
2014-08-04 16:23:17 -07:00
Stephen Birarda
453c37f4b9
Merge branch 'master' of https://github.com/highfidelity/hifi into domain-server-auth
2014-07-31 10:05:40 -07:00
wangyix
7281eca5a4
fixed inj crash; added statcDesired to MixedAudioStream
2014-07-30 17:20:05 -07:00
wangyix
daeb2a898d
added staticDesiredJitterBufferFrames feature; AudioMixer crashing
...
moved some callbacks from Application::updateAvatar() to
Application::update()
2014-07-30 15:35:40 -07:00
wangyix
ecfd5c2757
default max frames over desired changed to 10
2014-07-29 17:37:59 -07:00
wangyix
d49970d010
maxFramesOverDesired added; settable from domain page and preferences
2014-07-29 15:57:32 -07:00
wangyix
71c23eac1e
added TimeWeightedAvg to InboundAudioStream
...
_maxFramesOverDesired hardcoded right now
2014-07-29 13:51:46 -07:00
Stephen Birarda
85b8449e83
use two different signals for settings success and failure
2014-07-29 11:17:27 -07:00
Stephen Birarda
9a7267a10c
remove an unecessary reference to loop
2014-07-29 10:52:14 -07:00
wangyix
c709a103ad
minor comment change
2014-07-29 10:42:30 -07:00
wangyix
ccedb1bd20
forgot some code in checkBuffersBeforeFrameSend
...
corrected updateLastPopOutputTrailingLoudness behavior to match what the
old code did.
2014-07-29 10:40:01 -07:00
wangyix
a3b44a6a73
downstream silent packets seem to be working
2014-07-29 10:08:55 -07:00
wangyix
4825457f4d
silent audio packet type generalized
2014-07-28 16:49:53 -07:00
Stephen Birarda
84b86c17b7
use common settings retreival code to block before run in AudioMixer
2014-07-28 15:16:59 -07:00
wangyix
6fc5c74c0b
renamed ringbuffer variables to audiostream
2014-07-28 13:08:53 -07:00
wangyix
32dbc6cbdb
renamed audioringbuffer classes to audiostream
2014-07-28 11:52:05 -07:00
wangyix
9bbd055404
added stdev method of jitter calc to InboundAudioStream
2014-07-28 11:41:08 -07:00
wangyix
45b4777e60
cleaned up QHash iterator code again
2014-07-28 09:47:40 -07:00
wangyix
c129db16cb
formatting fix, AudioRingBuffer no longer NodeData,
2014-07-28 09:40:44 -07:00
wangyix
e6f913edb1
dead injected streams are now periodically removed in AudioMixer
2014-07-25 16:32:08 -07:00
wangyix
f7e043f52d
cleaned up code
2014-07-25 14:52:39 -07:00
wangyix
a9d26b3934
fixed repeat-popping in audiomixer
2014-07-25 12:58:10 -07:00
wangyix
822ba4da48
cleaned up code more, dancer.js audio not working
2014-07-25 10:21:38 -07:00
wangyix
059007c99c
cleaned up code (removed old code that was commented out)
2014-07-25 09:43:08 -07:00
wangyix
473cbf2afe
client audio now updated with stream class; seems fine for now
2014-07-24 17:15:46 -07:00
wangyix
21402e3ff1
cleaned up some stuff
2014-07-24 14:50:13 -07:00
wangyix
83ba4b9a1c
Audiomixer now working (added call to updateNextOutputTrailingLoudness())
2014-07-24 14:43:29 -07:00
wangyix
3d22a11e28
debugging new audio stream organization
2014-07-24 13:58:15 -07:00
wangyix
172cd91f27
removed unused seq variable
2014-07-24 11:58:07 -07:00
wangyix
da3339fc39
minor const change to qhash iterator
2014-07-24 11:57:00 -07:00
wangyix
c9b6879ca8
audiomixer code complete; need to test
2014-07-24 10:48:27 -07:00
wangyix
a36c9e872e
merged with upstream
2014-07-23 15:36:37 -07:00
wangyix
5eaa57b3ad
removed more warnings about unused vars
2014-07-23 12:10:25 -07:00
wangyix
4a4d065f00
another parseData change
2014-07-23 12:06:31 -07:00
wangyix
849c489b4c
removed warnings about parseData() overloading in ringbuffer classes
2014-07-23 11:20:30 -07:00
ZappoMan
7bbbde8957
add useDynamicJitterBuffers to the audio mixer stats page
2014-07-21 22:18:03 -07:00
wangyix
cd8d52c6f8
case statement style fix
2014-07-17 09:24:54 -07:00
wangyix
8775d22765
re-added calculated desired frames to domain page stats
2014-07-16 17:44:49 -07:00
wangyix
397e6c8b13
renamed a function
2014-07-16 17:34:48 -07:00
wangyix
6764ace8eb
droppable silent packets are added for dropped packets;
...
_currentJitterBufferFrames replaced with moving average of frames
available. Downstream framesAvailable stat now includes the frames in
QAudioOutput as well as the ringbuffer.
2014-07-16 14:41:24 -07:00
wangyix
abca4661f4
removed space
2014-07-15 14:48:26 -07:00
wangyix
d5a30ff6ee
removed SIMD stuff from AudioMixer for all builds
2014-07-15 14:43:08 -07:00
wangyix
a1b2bf59e9
disabled SIMD adds in AudioMixer for windows
2014-07-15 12:23:02 -07:00
wangyix
a37e24aeb4
updated domain page stats to use formated usec time strings
2014-07-14 11:08:00 -07:00
wangyix
a59cef3197
removed debug code in AudioMixer
2014-07-14 10:05:37 -07:00
wangyix
82e9aa8bb7
made stats easier to read; reverted injected stream deletion conditions
2014-07-11 16:08:15 -07:00
wangyix
90c931ea45
removed Audio.cpp initialization list warning; updated Injector removal conditions
2014-07-11 15:07:50 -07:00
wangyix
d369435240
added dirty fix for NaN _nextOutputTrailingLoudness
2014-07-11 13:25:47 -07:00
wangyix
69005242b9
forgot to multiply rates by 100% for domain stats page
2014-07-10 17:18:54 -07:00
wangyix
ae1d91b21d
improved domain page stats string a bit
2014-07-10 17:11:15 -07:00
wangyix
6c85caaa54
updated Stats for new AudioStreamStats format
2014-07-10 17:03:53 -07:00
wangyix
25f4f63a1e
added window PacketStreamStats to AudioStreamStats
2014-07-10 16:42:23 -07:00
wangyix
b4c9e51011
Audio now periodically sends downstream audio stats to audiomixer
2014-07-10 14:14:29 -07:00
wangyix
0b213f9616
streamlined AudioStreamStats packing; added #include <limits>
2014-07-10 10:44:33 -07:00
wangyix
0d83b9a6f6
tidied up code
2014-07-10 09:51:01 -07:00
wangyix
01f10024ae
all stats added, needs testing; created PacketStreamStats struct
2014-07-09 18:13:33 -07:00
wangyix
d03d3ef817
new auidostreamstats displayed in interface, domain page stats updated
2014-07-09 11:59:50 -07:00
wangyix
2e73ac8bc1
changed Audio.cpp to not overflow _audioOutput buffer, and 2 other things
...
added _consecutiveNotMixedCount to prevent premature injector stream
deletion; made silent-frame drop only occur in dynamic jitter buffer
mode
2014-07-08 11:16:39 -07:00
Stephen Birarda
ecbd62104c
cause sounds within an epsilon distance to be unattenuated
2014-07-03 16:43:12 -07:00
Stephen Birarda
438e0b501b
fix the voices inside your head
2014-07-03 16:32:38 -07:00
Stephen Birarda
04e7df1a3f
change the audio rolloff function
2014-07-03 13:46:38 -07:00
Stephen Birarda
c0d0ca5066
Merge branch 'master' of https://github.com/highfidelity/hifi into audio-rolloff
2014-07-03 13:37:06 -07:00
Brad Hefta-Gaub
dbdce32b68
Merge pull request #3107 from wangyix/master
...
prune missing sequence numbers before sending NACK; AudioRingBuffer frame length can now be specified;
2014-07-03 13:32:31 -07:00
wangyix
507518f16d
removed numFramesCapacity from being exposed everywhere
2014-07-03 11:11:56 -07:00
Stephen Birarda
0235b62324
Merge branch 'master' of https://github.com/highfidelity/hifi into audio-rolloff
2014-07-03 11:05:20 -07:00
Stephen Birarda
fe52787572
implement a new rolloff function
2014-07-03 11:05:12 -07:00
Stephen Birarda
0af79c4d95
fix for script agent audio missing channel flag
2014-07-03 10:45:05 -07:00
Atlante45
d6a2cea756
Switched AudioMixer to NetworkAccessManager
2014-07-01 17:39:45 -07:00
wangyix
ab503583dd
switched order of args in PositionalAudioRingBuffer
2014-07-01 17:33:38 -07:00
wangyix
a5943e3608
made AudioRingBuffer frames capacity variable
2014-07-01 16:24:31 -07:00
wangyix
4abfd2b6b7
removed forgotten semicolon in stats string
2014-06-30 17:16:28 -07:00
wangyix
02f12c27c5
forgot to add early/late/lost domain page stats for mic stream
2014-06-30 16:20:29 -07:00
wangyix
ae2780dcab
changed getAudioStreamStatsOfStream to return stats instead of taking pointer
2014-06-30 15:20:42 -07:00
wangyix
1bfe367020
fixed error with retrieving stream stats in AudioMixerClientData
2014-06-30 15:06:04 -07:00
wangyix
6b6dccda2f
_resetCount to _overflowCount in AudioRingBuffer
2014-06-30 14:21:38 -07:00
wangyix
c789f3c6b9
merge with upstream
2014-06-30 14:13:34 -07:00
wangyix
0711eb063e
fix reference to temp object error?
2014-06-30 13:07:46 -07:00
wangyix
dbb370aecf
added early/late/lost to domain page stats
2014-06-30 12:49:54 -07:00
wangyix
d2f86278b2
modified AudioStreamStats to per-stream with seq stats
...
added AudioStreamStats info to interface overlay stats
2014-06-30 12:31:58 -07:00
wangyix
de3c1ebf0f
changed class name to AudioStreamStats, reverted ScriptEngine packing back to QDataStream
2014-06-30 09:42:22 -07:00
wangyix
a0795fd6e6
removed extra print
2014-06-27 16:52:15 -07:00
wangyix
4587828a3a
removed debug prints
2014-06-27 16:48:21 -07:00
wangyix
0ae58bd7f9
added senderUUID arg to seq stats
2014-06-27 15:39:11 -07:00
wangyix
ff438a2434
added seq stats for Agent,
...
fixed AudioInjector to do << (quint16)0 instead of
skipRawData(sizeof(quint16) to correctly allocate space for seq number;
added debug prints;
2014-06-27 11:23:50 -07:00
Stephen Birarda
3ae46bc60d
switch audio-mixer to pull settings from domain-server via JSON request
2014-06-26 17:32:56 -07:00
Stephen Birarda
3f70402e63
fix odd encoding in settings URL
2014-06-26 16:58:51 -07:00
Stephen Birarda
95d266b305
initial setup of settings request from domain-server
2014-06-26 16:55:22 -07:00
wangyix
cb48825561
added seq number to all Audio types, untested
2014-06-26 16:52:23 -07:00
wangyix
37ce693153
added seqnum stats to AudioMixerClientData; added seqnums to Audio.cpp
2014-06-25 18:01:34 -07:00
wangyix
7dd7422cbf
removed more unneccesary changes
2014-06-25 11:57:45 -07:00
wangyix
c583f8b023
removed unnecessary changes
2014-06-25 11:48:32 -07:00
wangyix
591bfa14b9
added PacketTypeAudioStreamStats for j-buffer stats
...
...instead of packing that info into audio packets.
2014-06-25 11:38:56 -07:00
wangyix
1257e0595a
moved jbufferstats class to PositionalAudioRingBuffers
2014-06-25 09:52:02 -07:00
wangyix
99bc7f8c9d
#include "" to #include <>
2014-06-25 09:20:15 -07:00
wangyix
52f00769d4
merged with upstream
2014-06-24 17:22:30 -07:00
ZappoMan
1d390faad8
add support for commandline/config value for dynamic jitter buffers
2014-06-24 10:29:38 -07:00
ZappoMan
5c188ea81e
adding more stats
2014-06-24 09:41:29 -07:00
wangyix
53e3f5a3b0
merged with upstream
2014-06-24 09:13:05 -07:00
wangyix
a4f5ce2215
added stats for audiomixer jitter buffers lengths in Application
2014-06-23 17:48:57 -07:00
ZappoMan
6434c0a2a4
add more stats
2014-06-23 17:28:39 -07:00
ZappoMan
4becb66e2a
use node uuid in stats
2014-06-23 16:10:51 -07:00
ZappoMan
b2c982976e
break up audio mixer stats across multiple packets
2014-06-23 15:46:58 -07:00
ZappoMan
076bc11545
added server side audio mixer jitter stats
2014-06-23 15:19:13 -07:00
wangyix
ffc20b8876
changed InterframeTimeGapHistory to InterframeTimeGapStats
2014-06-23 11:22:04 -07:00
wangyix
e5d7d471e3
removed debug code
2014-06-23 10:55:30 -07:00
wangyix
7196814ec3
added debug prints to look at injected ring buffers
2014-06-23 10:22:16 -07:00
wangyix
a5457eb86b
fixed bug in Audio.cpp where numSilentSamples was written to wrong place in packet
...
added more debug stuff, other minor changes and fixes
2014-06-20 14:43:18 -07:00
wangyix
435b5094a0
moved time gap history to PositionalAudioRingBuffer, untested
...
removed hard-coded jitter buffer length.
2014-06-19 17:58:38 -07:00
wangyix
100bc022ec
fixed a for loop that erased elements while iterating
2014-06-19 16:42:51 -07:00
wangyix
aa3602f0fb
added InterframeTimeGapHistory and frameReceived() calls
2014-06-19 14:35:02 -07:00
Stephen Birarda
dd5d59208e
fix a crash when grabbing AABox from buffer
2014-06-18 15:05:38 -07:00
Stephen Birarda
1228bd4a1e
handle addition of samples for an unattenuated listener
2014-06-18 14:18:39 -07:00
Stephen Birarda
db1031144b
fix passing of unattenuated zones to buffers
2014-06-18 13:46:03 -07:00
Stephen Birarda
5878b4af59
setup listener unattenuated zones for source ring buffers
2014-06-18 12:50:16 -07:00
Andrew Meadows
3f36325642
remove warnings about signed/unsigned comparison
2014-06-17 11:59:37 -07:00
Stephen Birarda
194493ab9b
remove MMX math to fix stereo discrepancies
2014-06-06 12:00:47 -07:00
Stephen Birarda
f6011b65d7
fix input loudness for a stereo source
2014-06-06 11:26:04 -07:00
Stephen Birarda
ae2f6a3cb6
complete piping of stereo audio through mixer
2014-06-06 10:55:04 -07:00
Philip Rosedale
4e1eaf8337
Merge pull request #2809 from Atlante45/mute_env
...
Mute environment
2014-05-07 16:18:23 -07:00
Stephen Birarda
5e9036b3fe
tweak audio constants to be less agressive on cutoff
2014-05-07 15:37:41 -07:00
Atlante45
fd1f6befff
CR
2014-05-07 15:19:32 -07:00
Atlante45
40ed72989c
mute environment packet
2014-05-07 12:57:11 -07:00
Stephen Birarda
befe75a04c
fix broken audio-mixer stats
2014-05-05 14:03:14 -07:00
Atlante45
fd20686f0f
Removed Systime.h includes
2014-04-21 17:23:06 -07:00
Atlante45
dd8a0e3550
Removed gettimeofday in AudioMixer
2014-04-16 12:16:49 -07:00
Stephen Birarda
7cef2def66
remove Syssocket which is from our pre-Qt days
2014-04-10 10:34:31 -07:00
Stephen Birarda
1c861fbecb
resolve conflicts on merge with upstream master
2014-04-09 15:36:15 -07:00
Stephen Birarda
ae4b8348a2
fix header include guards via regex
2014-04-09 12:03:17 -07:00
Stephen Birarda
684c6b5372
run regex header replacement on all cpp files
2014-04-09 09:35:42 -07:00
Stephen Birarda
6a51df9e38
initial regex replacement of headers
2014-04-08 17:30:36 -07:00
Stephen Birarda
e1cae6d295
initial handshaking for DTLS sessions between DS and clients
2014-04-02 17:29:14 -07:00
Stephen Birarda
e2b230445f
add a method to Agent for last read frame loudness
2014-03-26 10:28:59 -07:00
Stephen Birarda
1fe01f3e61
increment framesSinceCutoffEvent in mixers to enable recovery
2014-03-25 12:16:07 -07:00
Stephen Birarda
b01b2a3311
use explicit float casts where appropriate
2014-03-24 16:35:36 -07:00
Stephen Birarda
ba338cb7bc
at minimum send packet rate stats for ThreadedAssignment subclasses
2014-03-24 16:06:25 -07:00
Stephen Birarda
3db8386743
suppress trailing sleep ratio debug
2014-03-24 15:46:02 -07:00
Stephen Birarda
e7f9acd945
add trailing sleep and performance throttling logic to AvatarMixer
2014-03-24 15:42:57 -07:00
Stephen Birarda
638e9eae48
add some basic stat collection to avatar-mixer
2014-03-24 15:38:01 -07:00
Stephen Birarda
8dbe4dfdde
collect packet rate stats in NodeList
2014-03-24 15:06:53 -07:00
Stephen Birarda
f8279c1f5b
handle query params in HTTPManager, display stats table from DS
2014-03-24 14:14:26 -07:00
Stephen Birarda
1fffda674a
send extra stats from audio-mixer to domain-server
2014-03-24 13:14:22 -07:00
Stephen Birarda
5f93e44ff7
abstract stats packet sending to NodeList
2014-03-24 12:33:00 -07:00
Stephen Birarda
8f403609e7
hook JSON stats sending from domain-server
2014-03-24 11:56:16 -07:00
Stephen Birarda
c0da215a60
correctly output trailing sleep time
2014-03-24 10:39:10 -07:00
Stephen Birarda
d0fbf4953a
change back off strategy, output trailing sleep
2014-03-24 10:27:46 -07:00
Stephen Birarda
5567d9acb9
change audio-mixer struggle behaviour
2014-03-24 09:24:13 -07:00
Stephen Birarda
c5b0288c12
remove numClientsMixedInFrame since it is no longer used
2014-03-21 18:49:46 -07:00
Stephen Birarda
af4fb26031
floats are important
2014-03-21 18:44:59 -07:00
Stephen Birarda
abd6c8a747
fix trailing average on ring buffer, remove unused constant
2014-03-21 18:28:12 -07:00
Stephen Birarda
88348b12d2
fix a divide by zero and output number of clients mixed in last frame
2014-03-21 18:16:47 -07:00
Stephen Birarda
88b91b9eb7
change an int to a float
2014-03-21 17:17:11 -07:00
Stephen Birarda
8ecd9aa0c0
change audibility delta to 2%, don't hit 1.0
2014-03-21 17:16:54 -07:00
Stephen Birarda
34f9075980
use a linear change to audability ratio
2014-03-21 16:47:41 -07:00
Stephen Birarda
dc2d050187
remove sleep time debug now that the audio-mixer reports struggle
2014-03-21 15:47:21 -07:00
Stephen Birarda
50007d7f4b
fix a debug message for audability threshold
2014-03-21 15:43:39 -07:00
Stephen Birarda
75bc640104
fix some indentation is audio mixer cutoff code
2014-03-21 15:42:58 -07:00
Stephen Birarda
4661553acb
check for cutoff change only every TRAILING_AVERAGE_FRAMES
2014-03-21 15:40:08 -07:00
Stephen Birarda
c99f5a4ae6
int to float conversion in the constructor
2014-03-21 14:38:01 -07:00
Stephen Birarda
98f014d13d
add another check to avoid any mixing for a silent frame
2014-03-21 14:37:31 -07:00
Stephen Birarda
3d9aa6cc9f
fix a spelling mistake and convert some ints to floats
2014-03-21 14:36:44 -07:00