/srv/irclogs.ubuntu.com/2020/07/07/#ubuntustudio-devel.txt

OvenWerksEickmeyer: FYI, Ardour 6.1 tagged... from some of the conversation, 6.2 may be earlier than expected. So not sure it is a great idea to pull in 6.1.03:46
OvenWerksEickmeyer: -controls has moved a pace. 03:47
OvenWerksmy old AudioPCI card has an AudioPCI,1,0 which zita-ajbidge can not open though I think jack can (could before).03:49
OvenWerksThis may have been part of what I was seeing the other day. but there were other things too (now fixed) that were git master specific.03:50
OvenWerksso not in release. PCH,1,0 (playback) and PCH,2,0 (capture) do both work as extra devices and more cleanly than before.03:57
OvenWerksHeadphones is part way there.03:58
OvenWerksif jackmaster is HDA and head phones get plugged into, head phones will switch when plugged in.04:00
OvenWerksand back when unplugged.04:01
OvenWerksalsa mixer will still switch even if not jackmaster... at least if PCH is called the headphone device. If another device is called the headphone device (like USB) then the usb un/plug event will be used to switch... but this requires more code to move the connections from jack master to PH device. I guess I should keep track of these connections because if the device is pulled the ports may 04:09
OvenWerksvanish before I get a chance to move them.04:09
OvenWerksI have already added a jack client to autojack and will be working on this next.04:10
OvenWerksThe code I have now for making connections from devices to pulse bridges will be moved from external calls to this client as well.04:11
OvenWerksThis will also allow something like use a usb device and decide to be quiet... plug HP into computer, noise from usb device goes away to headphones in PCH device... are we having fun yet?04:14
OvenWerksI will say this is farther than I ever expected autojack to go when I whipped up a quick bash script to set up the usb device for my wife's computer.04:15
OvenWerksEickmeyer: in other news, I DL AVLinux and ran live. It says it supports the echofire 12... so someone has gotten it to work. mine doesn't. The only thing I haven't tried at this point is a new cable... so I have prdered another one (9 pin to 6pin instead of 6 to 6). This is my last stab at things fw unless someone comes along with lots of time to try things for me or who has one already 04:19
OvenWerksrunning.04:19
OvenWerksI may try installing AVL to see installed makes any difference.04:19
OvenWerksI don't like it so much in my tests. but lots of people do use it so it is at least something to go by.04:20
OvenWerksI think ubuntustudio is still better.04:21
OvenWerksAnyway, good night04:21
EickmeyerOvenWerks: Sorry for the radio silence, just read through all of this. Good progress!06:19
EickmeyerRE: AVL: If there's one thing that it has that we don't is an RT kernel. That said, Holstein and I tend to agree that RT kernels aren't the fix-all that people think they are. 06:20
OvenWerksEickmeyer: no RT kernals are not a fix.06:36
OvenWerksgenerally it starts with getting lucky with hardware06:37
OvenWerksit seems ardour 6.1 is tagged but not released ;)06:40
OvenWerksEickmeyer: I have found the reason I can not use zita-ajbridge with the AudioPCI,1,0 device. I thought I would try alsa_out and it failed too. However, it at least told me why it could not open the device. It seems that while AudioPCI,0,0 will open fine at 48000, AudioPCI,1,0 is 44100 only.14:30
OvenWerksEickmeyer: because the card is as old as it is... pre AC97 even. there is no easy way for me to find that out. USB has a stream file and HDA has a Codec file which give the allowable rates.14:33
OvenWerksEickmeyer: jack doesn't care, jack opens the device at whatever rate it is running at even if it fails to set the rate.14:36
EickmeyerOvenWerks: Interesting.15:55
OvenWerksLooking at the alsaaudio module for python... it can try to set rate and fail but does not seem to have a way of querying availabale rates15:57
EickmeyerSo, that means it figures it out by trial and error and probably goes toward the lowest SR, right?16:01
OvenWerksI think the python alsa module just fails if you ask for the wrong SR just like zita or alsa_out16:02
EickmeyerFun.16:03
OvenWerksI think I might write a quick script just to test it. There is a command alsaaudio.pcms([type=PCM_PLAYBACK])16:06
OvenWerkswith the description: "List available PCM devices by name."16:06
OvenWerksbut looking at the c code it looks like it does a lot more.16:07
EickmeyerNice. That might help.16:07
OvenWerksNope, I would have to write something in c. There alsapcm_setup works like: snd_pcm_hw_params_set_rate_near() then: snd_pcm_hw_params_get_rate()16:15
EickmeyerOh, fun. :P16:15
OvenWerksbut that is not available in the python bit I think.16:16
OvenWerksAnd besides I don't really want to actually open the device.16:16
OvenWerksEickmeyer: What I can do: I can set rate in python, check: /proc/asound/<device>/<subdev>/hw_params for rate:17:46
EickmeyerIn theory that should work. Nice.17:48
OvenWerksI think it will actually be better than trying to find the right file for the device type to parse18:02
OvenWerksSo for this device, 48000 gives a rate of 5512 and 44100 gives a rate of 4410018:04
OvenWerksWhat is interesting is that sub 0 and sub 1 giv e two different results as if they have two different clocks18:06
OvenWerksrate is specified like: rate: 44100 (44100/1) with the first number bing what it is set for and the second being actual18:07
OvenWerksthat is sub 1, sub 0 is: rate: 44100 (1411200/32)18:07
OvenWerksand even worse: rate: 48000 (1411200/29)18:08
OvenWerksMaybe that is how the clock gets it... so 48k is actually: 48662.068 and 44k1 is right on. Interesting.18:11
EickmeyerVery interesting. Seems like an arbitrary sample rate for 48k for that device.18:12
OvenWerkstry to get close I guess18:12
EickmeyerIt's clear that it's made specifically for 44.1k.18:13
OvenWerksyes18:13
OvenWerksI think AudioPCI,1,0 is a digital out (spdif-ish18:14
EickmeyerMy audio interface is capable of 192k, but I don't know why I'd ever run it that high unless I were recording bats.18:14
OvenWerksThe main device does 32k but the sub1 doesn't18:16
OvenWerksSo try to set the device to jack-rate if it fails, try one step up if 44k1 down if 48k then try 96k then try 32k... then give up :)18:18
OvenWerks(some webcam devices are 32k)18:19
OvenWerksEickmeyer: my opinion is that if we are already going through an SRC stage (zita) then any possible gain from 96k or up is lost anyway.18:20
EickmeyerI know someone who swears by 96k. I told him that he must have supersonic hearing then.18:21
OvenWerksThe problem is that there are some devices that are 96k only (A&H new 32 channel mixer for example)18:21
EickmeyerYep, some Roland mixers do 96k. I mean, I get it as far as sample rate, but you're never going to be able to hear what that is capable of sampling.18:21
OvenWerksEickmeyer: there are some (poorly made) plugins that do benefit from a higher sample rate... properly made ones will upsample inside instead18:22
EickmeyerWhich makes sense.18:22
OvenWerksdigital mixers use 96k for latency in snakes... and in the case of A&H because they use all int math (so also 48 bit or more bit depth)18:25
EickmeyerOk, maybe that's why 96k sounds better in live venue settings.18:26
OvenWerksIt just works better with the DSP chips they use... no real cpu ecept for control18:28
OvenWerksAlso no discounting the Sales PR it gives  ;)18:30
OvenWerksEickmeyer: is there a place where you keep depends for studio-controls?18:32
OvenWerkswe will need to add python3-alsaaudio18:33
EickmeyerOvenWerks: is python3-alsaaudio in the repos?19:48
EickmeyerIt is. Not hard to add that as a dep. Just make sure it's documented somewhere.19:49
EickmeyerAlready exists in Fedora as well, so looks like we've mostly got our bases covered.19:50
OvenWerksmention it in the changelog?19:51
EickmeyerSure.19:54
EickmeyerOvenWerks: mcpdisp in the NEW queue.21:06
OvenWerkscool21:19

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!