Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature] Edit sample rate #45

Open
airisama019 opened this issue Feb 16, 2024 · 4 comments
Open

[New Feature] Edit sample rate #45

airisama019 opened this issue Feb 16, 2024 · 4 comments
Labels
accepted The new feature request is accepted new feature This is a new feature
Milestone

Comments

@airisama019
Copy link

Describe the new feature you'd like
Edit sample rate through as-cmd parameter/option

example : as-cmd -b 192.168.x.x --sample-rate 96000

Describe the reason why you want to add the feature
Increasing sample rate may lower latency since default is 48000

Additional context
I tried changing pipewire.conf but as-cmd still reports 48000

@airisama019 airisama019 added the new feature This is a new feature label Feb 16, 2024
@hideki2k02
Copy link

hideki2k02 commented Feb 28, 2024

Looking forward to this as latency can be quite the annoyance on certain scenarios.

UPDATE: Here are some comparisons:

  • Phone is on a 5GHz 80Hz Wi-Fi and the PC is Wired: Very noticeable latency, probably over 15ms.
  • Phone is directly connected to the PC via USB (Using USB Tethering): ~5ms latency.

@mkckr0 mkckr0 added the accepted The new feature request is accepted label Feb 29, 2024
@mkckr0
Copy link
Owner

mkckr0 commented Feb 29, 2024

Increasing sample rate can't lower latency. It need more network traffic bandwidth, and may higher the latency. Instead, you need decrease the sample rate.

@airisama019
Copy link
Author

Looking forward to this as latency can be quite the annoyance on certain scenarios.

UPDATE: Here are some comparisons:

  • Phone is on a 5GHz 80Hz Wi-Fi and the PC is Wired: Very noticeable latency, probably over 15ms.
  • Phone is directly connected to the PC via USB (Using USB Tethering): ~5ms latency.

there is this "audio-sharing" app on flathub and it so much worse like 1 or 2 sec latency
this one here is much better
latency on videos is berable on 5 ghz wifi but you can't do gaming.

@hideki2k02
Copy link

hideki2k02 commented Mar 2, 2024

there is this "audio-sharing" app on flathub and it so much worse like 1 or 2 sec latency this one here is much better

Definitely! Unfortunately IIRC its Shareware and only works for 1h and its a pain to set-up :(

latency on videos is berable on 5 ghz wifi but you can't do gaming.
I was able to get decent latency (probably 2-3ms) by doing this

  • Setting Buffer to 1x
  • Connecting a USB Cable from the Phone to the PC using USB Tethering (Dont forget to disable Mobile Data)
  • Connect using the IP the Phone gave you (Check the Network settings, should be something like 192.168.102.248)

@mkckr0 mkckr0 added this to the v0.0.19 milestone Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted The new feature request is accepted new feature This is a new feature
Projects
None yet
Development

No branches or pull requests

3 participants