Comments (5)
Pinging each other from each end, the average latency is around 0.5ms (half a milisecond).
How do you ping phone? I test the ping delay is about 2~5ms.
Do delay of via WIFI and USB tethering both reach 350ms?
from audio-share.
How do you ping phone? I test the ping delay is about 2~5ms.
I do get the local IP address of the phone from the server logs when the phone is connected. Additionally it can also be gathered using termux with the ifconfig
command.
On PC I use the ping command. It doesn't show sub 1ms values in Windows but it does on Linux (so on the phone)
Do delay of via WIFI and USB tethering both reach 350ms?
Here's a table:
Latency: | USB | Wi-Fi |
---|---|---|
Ping | ~0.5ms |
2~5ms |
Audio | ~350ms |
~500ms |
These values are pretty consistent even over long periods
The measurements in audio delay is pretty loose since I don't have a reliable method other than using the video I referenced. However even assuming a worst case 100ms
error margin, the latency over USB is quite high.
from audio-share.
I test my delay is less than 50ms. The PCM data is transterred via UDP, so the network delay has already been shortened. Your network seems like normal, so we can exclude this factor.
There is no decompression or any other complicated jobs. It's just memory copy. The delay may be caused by the CPU performance and RAM R/W delay. You can use another PC or phone to test. I don't have better idea to figure it out.
from audio-share.
Your problem may be same as #14. You can use wav_recorder.exe
to test if exists delay.
wav_recorder.zip
#14 (comment)
from audio-share.
Fix at #24.
from audio-share.
Related Issues (20)
- [BUG] No sound on Arch Linux HOT 7
- [New Feature] Reject TCP only clients. HOT 1
- [New Feature] Edit sample rate HOT 4
- [BUG] Android client crashes after set `AudioTrack Buffer size Scale` to `0` and reconnect HOT 4
- IPv6 Support
- [BUG] No longer working after Arch update (PC). (console command) Version: v0.0.17 HOT 2
- [New Feature] Add a tile in Quick Settings HOT 1
- [New Feature] Add "Repair Firewall" button for AudioShareServer.exe
- [Suggestion] Simplifying the server setup HOT 3
- [BUG] Can't connect to server HOT 5
- [New Feature] quick setting tile HOT 1
- [BUG] Endpoint 0 HOT 9
- [BUG] latency is greater than, 2000ms at times HOT 49
- [New Feature] Adjust the audio recording thread to High Priority HOT 2
- [New Feature] Support MacOS HOT 1
- [New Feature] Suggestion: Utilize Speaker APK as an Audio Receiving Server for Device Audio Forwarding
- [BUG] Cannot compile under Linux HOT 2
- Is it possible to add automatic reconnection after disconnection? HOT 6
- [New Feature] Edit the capture PCM format(integer or float, bitwise, etc)
- [BUG] i have a very specific bug report HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio-share.