Page MenuHomeFreeBSD

multimediaUmbrella
ActivePublic

Recent Activity

Fri, May 3

vvd requested review of D45071: multimedia/vlc: fix build with FREERDP option ON: incompatible function pointer types.
Fri, May 3, 12:25 AM · multimedia

Wed, Apr 24

vvd closed D44909: audio/audacity: update to 3.5.0.
Wed, Apr 24, 12:24 AM · multimedia
vvd updated the diff for D44909: audio/audacity: update to 3.5.0.

Upstream committed our patches to 3.5.1 branch - replaced audio/audacity/files/patch-* with patch from this commit.

Wed, Apr 24, 12:00 AM · multimedia

Tue, Apr 23

vvd updated the diff for D44909: audio/audacity: update to 3.5.0.

Removed unused LIB_DEPENDS:

Warning: you might not need LIB_DEPENDS on libasound.so
Warning: you might not need LIB_DEPENDS on libcurl.so
Warning: you might not need LIB_DEPENDS on libopenjp2.so
Warning: you might not need LIB_DEPENDS on libpng.so
Warning: you might not need LIB_DEPENDS on libturbojpeg.so

And pet portclippy.

Tue, Apr 23, 9:50 AM · multimedia
arrowd added a comment to D44909: audio/audacity: update to 3.5.0.

The change looks fine but remember that maintainer timeouts don't work on Phab. You need to create a bugzilla PR for this.

Tue, Apr 23, 7:30 AM · multimedia

Mon, Apr 22

vvd updated the summary of D44909: audio/audacity: update to 3.5.0.
Mon, Apr 22, 10:48 PM · multimedia
vvd requested review of D44909: audio/audacity: update to 3.5.0.
Mon, Apr 22, 10:38 PM · multimedia

Mar 26 2024

rozhuk.im-gmail.com abandoned D11140: OSS: allow unplug sound cards without apps close devices.
Mar 26 2024, 6:27 AM · Contributor Reviews (src), multimedia
christos added a comment to D11140: OSS: allow unplug sound cards without apps close devices.

D43545 takes care of this change. Should we close this?

Mar 26 2024, 5:49 AM · Contributor Reviews (src), multimedia

Feb 12 2024

christos closed D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
Feb 12 2024, 11:08 AM · multimedia

Jan 30 2024

dev_submerge.ch added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Interesting. I just tested, and if I boot my machine while interface is on, kld_list and buffer_ms together do the trick. I mean, jack_iodelay reports exactly same latency as if I loaded the module, set buffer_ms and then turned on the interface. Maybe my interface is slow to respond initially, so sysctl has time to kick in?

Jan 30 2024, 3:11 AM · multimedia

Jan 29 2024

christos added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

@christos: Thanks! Since @mav didn't participate here, would someone else be so kind to commit this? Unless there's other issues that weren't brought up yet.

I will commit it.

@meka_tilda.center Sorry about the extra work, I somehow thought you would know that. The handling of buffer_ms didn't change in this regard. My approach was to communicate it simply as a /boot/loader.conf tunable. IMHO that's more digestible by end users, less error prone. Tell them to (re-)attach the device only after buffer_ms is set would probably also work. But kld_list+=snd_uaudio and /etc/sysctl.conf come too late, due to snd_uaudio being automatically loaded early in the boot process. You'd have to explicitly kldunload snd_uaudio at that point to make the devices reattach.

I agree with @meka_tilda.center on this. We should have a man page entry for this as it's not really obvious.

Jan 29 2024, 3:56 PM · multimedia
christos added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

@christos: Thanks! Since @mav didn't participate here, would someone else be so kind to commit this? Unless there's other issues that weren't brought up yet.

Jan 29 2024, 1:24 PM · multimedia
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Interesting. I just tested, and if I boot my machine while interface is on, kld_list and buffer_ms together do the trick. I mean, jack_iodelay reports exactly same latency as if I loaded the module, set buffer_ms and then turned on the interface. Maybe my interface is slow to respond initially, so sysctl has time to kick in? Anyway, if I were to do it differently, what should I do? Load module and set buffer_ms in loader.conf?

Jan 29 2024, 12:05 PM · multimedia

Jan 28 2024

dev_submerge.ch added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

@christos: Thanks! Since @mav didn't participate here, would someone else be so kind to commit this? Unless there's other issues that weren't brought up yet.

Jan 28 2024, 3:51 PM · multimedia
christos accepted D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

That's a great improvement. LGTM.

Jan 28 2024, 2:51 PM · multimedia
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

A misunderstanding. I though you wanted me to make sure there are no reconnects. Anyway, loading the driver first, then setting buffer_ms and then turning on the interface yields the following results

period = 192
buffer_ms = 1
  690.921 frames     14.394 ms total roundtrip latency
	extra loopback latency: 306 frames
	use 153 for the backend arguments -I and -O

Now this is a great improvement! Can we document it somewhere? Suggesting, for example, to put kld_list+=snd_uaudio and then set buffer_ms as any other sysctl? In my oppinion, if we spent so much time figuring out how to properly do the measurement, I'm sure other people will need help with their setup, too, so why not make it easier for them and put this into snd_uaudio(4).

Jan 28 2024, 3:38 AM · multimedia

Jan 27 2024

dev_submerge.ch added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

I didn't answer about re-plugging. No, the interface is always connected and I don't touch the cables.

Jan 27 2024, 2:02 PM · multimedia
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

I didn't answer about re-plugging. No, the interface is always connected and I don't touch the cables.

Jan 27 2024, 12:23 PM · multimedia
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

I see what you mean. I tested with buffer_ms of 1 and 8 and I get almost exact numbers:

period = 192
Jan 27 2024, 12:19 PM · multimedia

Jan 22 2024

vvd closed D41048: audio/mumble-server: update to 1.5.517.
Jan 22 2024, 7:07 PM · multimedia
arrowd accepted D41048: audio/mumble-server: update to 1.5.517.
Jan 22 2024, 7:02 PM · multimedia
dev_submerge.ch added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Meka, according to USB descriptor your audio interface is fine with 1ms intervals (bInterval = 0x0004). So that's not the problem. And the latency doesn't even change without this patch, we know that worked before. Did you replug the device after you changed the buffer_ms sysctl? New buffer_ms values may not become effective immediately, depending on your settings.

Jan 22 2024, 4:38 PM · multimedia
vvd added a comment to D41048: audio/mumble-server: update to 1.5.517.

If you want to test it - get current patch.
If you want to see diff with old murmur - check history patch here: https://reviews.freebsd.org/D41048?id=133095

Jan 22 2024, 1:34 PM · multimedia
vvd updated the diff for D41048: audio/mumble-server: update to 1.5.517.

Trying to update diff using arcanist.

Jan 22 2024, 1:25 PM · multimedia
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
Main branch
-----------
hw.usb.uaudio.buffer_ms = 8
period = 768
  2563.934 frames     53.415 ms total roundtrip latency
	extra loopback latency: 1027 frames
	use 513 for the backend arguments -I and -O
Jan 22 2024, 6:38 AM · multimedia

Jan 21 2024

dev_submerge.ch added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Thanks for all the measurements, Meka! It seems like the buffer_ms sysctl doesn't have any effect at all. I suspect your audio interface to demand a longer interval in its USB descriptor. Could you

Jan 21 2024, 7:18 PM · multimedia
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

I missed 4ms request from you, so here are those measurements

Main branch
-----------
hw.usb.uaudio.buffer_ms = 4
period = 768
  3337.952 frames     69.541 ms total roundtrip latency
	extra loopback latency: 1033 frames
	use 516 for the backend arguments -I and -O
Jan 21 2024, 4:23 PM · multimedia
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Thank you for the explanation. I took the measurement and I tried to get the lowest latency without jitters, so here is the complete measurement.

Main branch
-----------
hw.usb.uaudio.buffer_ms = 2
Jan 21 2024, 4:12 PM · multimedia

Jan 20 2024

vvd updated the diff for D41048: audio/mumble-server: update to 1.5.517.

Patch against current audio/murmur.

Jan 20 2024, 5:06 PM · multimedia
dev_submerge.ch added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Hi Meka, sorry to hear, hope you are well now.
Your measurements seem to be accurate. Unfortunately they do not match my expectations, as I would have estimated more like a ~12ms reduction in this scenario.
I'll try to verify my own tests, but could you measure the new default of buffer_ms=4 in your setup? And a period of 768 in addition to 512 and 1024? Thanks!
I may have to check with the version of Jack in ports, I did my measurements with the new sosso backend which does mmap io.

Jan 20 2024, 1:10 AM · multimedia

Jan 19 2024

meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Sorry for the delay, I got sick (again). Anyway, it took me a while to figure out what's going on. As I didn't have speakers on, I didn't notice there are jitters, that's why the numbers don't match. I took similar measurements with higher period size in jack and these are the results

Main branch
-----------
hw.usb.uaudio.buffer_ms = 2
Jan 19 2024, 4:55 PM · multimedia
dev_submerge.ch updated the diff for D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Clarified buffer_ms sysctl description as suggested by @emaste.

Jan 19 2024, 12:28 AM · multimedia

Jan 18 2024

emaste added inline comments to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
Jan 18 2024, 10:26 PM · multimedia
dev_submerge.ch added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

@meka_tilda.center Any comment on your test results?

Jan 18 2024, 8:50 PM · multimedia
dev_submerge.ch updated the diff for D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Introduced UAUDIO_BUFFER_MS_MIN and UAUDIO_BUFFER_MS_MAX as constants.
Intentionally left the comments that mention 8 ms max buffer length. It
gives some understandable context and that value will probably never change
as long as current USB audio standards are supported.

Jan 18 2024, 8:15 PM · multimedia
vvd added a comment to D41048: audio/mumble-server: update to 1.5.517.

I check - update from 1.3.3 to 1.3.4 is trivial. Can I update it and take maintainership without review?
Also it need LIB_DEPENDS=devel/abseil - tested in poudriere.

Jan 18 2024, 11:25 AM · multimedia
vvd updated the diff for D41048: audio/mumble-server: update to 1.5.517.

Added UIDs, GIDs and UPDATING.

Jan 18 2024, 9:31 AM · multimedia
vvd updated the diff for D41048: audio/mumble-server: update to 1.5.517.
In D41048#990566, @vvd wrote:

As an option, create a new port with new UID/GID, and specify DEPRECATED in the old one and for some time there will be 2 ports at the same time. And then delete the old one with an entry in UPDATINGS describing the migration process.

I actually like this plan, even without deprecating. Just leave it as it is, use new UID/GID and free old UID/GID. In the pkg-message change step 5 from pw usermod to chown -R.

Jan 18 2024, 9:28 AM · multimedia

Jan 17 2024

christos added a reviewer for D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable.: christos.
Jan 17 2024, 4:47 PM · multimedia
christos added inline comments to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
Jan 17 2024, 4:47 PM · multimedia

Jan 15 2024

arrowd added a comment to D41048: audio/mumble-server: update to 1.5.517.
In D41048#990566, @vvd wrote:

As an option, create a new port with new UID/GID, and specify DEPRECATED in the old one and for some time there will be 2 ports at the same time. And then delete the old one with an entry in UPDATINGS describing the migration process.

Jan 15 2024, 7:42 AM · multimedia
vvd added a comment to D41048: audio/mumble-server: update to 1.5.517.

As an option, create a new port with new UID/GID, and specify DEPRECATED in the old one and for some time there will be 2 ports at the same time. And then delete the old one with an entry in UPDATINGS describing the migration process.

Jan 15 2024, 7:37 AM · multimedia

Jan 12 2024

vvd added a comment to D41048: audio/mumble-server: update to 1.5.517.

I don't know if this is what you asked for...

Jan 12 2024, 6:51 AM · multimedia
vvd updated the diff for D41048: audio/mumble-server: update to 1.5.517.
Jan 12 2024, 6:49 AM · multimedia
vvd updated the diff for D41048: audio/mumble-server: update to 1.5.517.
Jan 12 2024, 6:40 AM · multimedia
vvd updated the diff for D41048: audio/mumble-server: update to 1.5.517.

Patch from git format-patch -1.
Not so obvious - diff look like "rm file && create file"…

Jan 12 2024, 5:53 AM · multimedia

Dec 30 2023

dev_submerge.ch added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

Thanks for testing, Meka! Could you elaborate on how you did the latency measurements?
Because jack_iodelay reports a decrease of only ~2ms in total roundtrip latency, whereas the extra loopback latency decreases by ~300 frames (~6ms at 48kHz). Any other changes in the setup or Jack settings?

Dec 30 2023, 1:12 PM · multimedia
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..

I ran jack_iodelay with same buffer_ms value and these are the results:

Dec 30 2023, 10:43 AM · multimedia
meka_tilda.center abandoned D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms.

Florian's patch is superior to this one, hence closing.

Dec 30 2023, 10:36 AM · multimedia