#
✕ nick:chadmed
#asahi-dev · 2023-08-18 13:23
chadmedand coreaudio does have a dsp profile for raw access but theres no way to use it/set it as the default from userspace. looks like it was just left in there as an artefact from development
#asahi-dev · 2023-08-18 13:23
chadmeddsharshakov: the volume control is still a bit weird from KDE, e.g. muting and then unmuting will cause the sink to be opened back up at extremely low volume
#asahi-dev · 2023-08-18 13:16
chadmedsome things are a bit janky
#asahi-dev · 2023-08-18 13:16
chadmedill try something different tomorrow and will get around to adding some comments to the issue and MR
#asahi-dev · 2023-08-18 13:15
chadmednothing is clipping anyway and even if it was it wouldnt result in the noises im hearing
#asahi-dev · 2023-08-18 13:15
chadmeddsharshakov: nah no artefacts at all through the headphones
#asahi-dev · 2023-08-18 12:45
chadmedstill get this stupid crackling noise out of the woofers whenever theyre moderately loud
#asahi-dev · 2023-08-18 12:45
chadmedno stage of the dsp graph is clipping at all
#asahi-dev · 2023-08-18 12:44
chadmedbypassed everything, rejigged FIRs to _only_ cut and not boost anything, took the saturator off
#asahi-dev · 2023-08-18 12:44
chadmedok im 100% certain this stupid clipping is inside the codec now
#asahi-dev · 2023-08-15 14:33
chadmedno need to apologise, im awake just not in productivity mode :P ill get around to the comments on the issue in the morning too
#asahi-dev · 2023-08-15 14:31
chadmed(its almost 1am here)
#asahi-dev · 2023-08-15 14:31
chadmeddsharshakov: unreal, will test tomorrow!
#asahi-dev · 2023-08-14 11:40
chadmedbut its what apple does and seemingly every other microspeaker engineer on earth now so *shrug*
#asahi-dev · 2023-08-14 11:39
chadmeddoesnt help that using loudness compensation like this is not the "traditional" way youd use it :P
#asahi-dev · 2023-08-14 11:39
chadmedyeah sorry its hard to really explain unless youre actually in front of the thing and can hear whats going on
#asahi-dev · 2023-08-14 11:37
chadmedin fact it was one of the first things i did under the assumption that the loudness compensator could be controlled from pipewire
#asahi-dev · 2023-08-14 11:37
chadmedlike i said ive mocked this up in carla and it all works
#asahi-dev · 2023-08-14 11:37
chadmedyeah thats the idea
#asahi-dev · 2023-08-14 11:36
chadmedso nothing will ever be boosted relative to whatever we specify at max volume
#asahi-dev · 2023-08-14 11:35
chadmedit just pulls the mids down faster than it does treble and bass, based on iso 226:2003 curves
#asahi-dev · 2023-08-14 11:35
chadmedit never actually boosts anything, it only attenuates
#asahi-dev · 2023-08-14 11:34
chadmedno because the equal loudness compensation would do nothing at max volume, and then do its compensation as we turn the volume down
#asahi-dev · 2023-08-14 11:34
chadmedbit of an unfortunate double-whammy with where the human ear's sensitivity peaks and how these speakers behave
#asahi-dev · 2023-08-14 11:34
chadmedso all you get is honky mids
#asahi-dev · 2023-08-14 11:34
chadmedyeah, without equal loudness compensation you get aggressive rolloff in the bass and treble
#asahi-dev · 2023-08-14 11:33
chadmedthat might just be the compressor not being quite right though
#asahi-dev · 2023-08-14 11:33
chadmedthe part im kind of at a loss to explain is that if i push the volume *past* where this noise becomes audible, it goes away for a bit until i push hard enough to get overexcursion
#asahi-dev · 2023-08-14 11:31
chadmedwe avoid clipping by simply making it impossible at max volume
#asahi-dev · 2023-08-14 11:31
chadmedif i tune the graph (bass enhancement, compressor, etc) for sounding "right" at max volume then none of this matters
#asahi-dev · 2023-08-14 11:31
chadmedwhich is why im pretty sure its just digital clipping inside the codecs once the volume going in goes up past a certain amount
#asahi-dev · 2023-08-14 11:30
chadmedwhat im doing atm is driving the bass "enhancement" harder than it neds to be driven so that it sounds right at normal volumes
#asahi-dev · 2023-08-14 11:25
chadmedbut hopefully we can find a way forward: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3434 (cc dsharshakov)
#asahi-dev · 2023-08-14 11:24
chadmedi mocked this up in carla so i know it can be done, and is what youd usually do. everything ive been doing lately has been desperately trying to work around this because we cant control the loudness compensator at runtime
#asahi-dev · 2023-08-14 11:24
chadmedpovik: we tune at full volume such that the clicks do not happen (this is possible ive already tried it) then use the equal loudness plugin to keep that sonic profile across the volume range
#asahi-dev · 2023-08-14 11:13
chadmednope
#asahi-dev · 2023-08-14 11:12
chadmedits ~the same pop/click that is audible when you abrubptly mute/pause a stream sometimes, but much louder
#asahi-dev · 2023-08-14 11:12
chadmedpovik: its not overexcursion, it sounds almost like clipping artefacts but the signal is nowhere near being saturated
#asahi-dev · 2023-08-14 10:30
chadmedso close to greatness...
#asahi-dev · 2023-08-14 10:30
chadmedthat popping noise is back and i think its just a limitation of the codecs that we have to work around by making the speakers sound good at full volume and then using the equal loudness plugin to maintain a consistent profile when the user turns the volume down
#asahi-dev · 2023-08-14 10:29
chadmedif we can make pipewire present the volume knob of the lsp equal loudness plugin as _the_ volume then we're home free
#asahi-dev · 2023-08-14 10:28
chadmedbut it currently has to be done manually
#asahi-dev · 2023-08-14 10:28
chadmedpipewire filter graphs can change their parameters at runtime
#asahi-dev · 2023-08-14 10:28
chadmedok so final piece of the puzzle for the speakers is going to be _somehow_ convincing pipewire to tie the volume knob of a sink to a parameter in a filter chain
#asahi-dev · 2023-08-13 02:13
chadmedsaturation in the convolver who on earth could have predicted this :P
#asahi-dev · 2023-08-13 02:13
chadmedoooh yes yes yes stupid popping noise seems to have been fixed
#asahi-dev · 2023-08-13 00:05
chadmedbut the goal was never just "good enough"
#asahi-dev · 2023-08-13 00:04
chadmedi had to take the cloth grilles off my hifi speakers because i couldnt stand what they did to the sound :P
#asahi-dev · 2023-08-13 00:04
chadmedtbf im probably not the best person to judge the necessity of such things
#asahi-dev · 2023-08-13 00:03
chadmedso they will need to be done from scratch

plus ›