News for hackers. Stuff that matters.
Re:Apple has not fixed the macOS audio left/right balance bu... by b20000 on Wednesday February 14, 2024 @11:33AM (#39371814)
this is the fault of a poorly designed application and not the OS
Re:Apple has not fixed the macOS audio left/right balance bu... by TwistedWave on Wednesday February 14, 2024 @07:03PM (#39377340)
Here is the contents of the bug I have reported with all the details and sample code to reproduce the problem:

https://twistedwave.com/AudioGlitches.zip

It contains a program where the only thing I do in the real-time callback is to count the glitches, and I made sure to mlock() the memory used by the glitch counting code. When the memory pressure increases, it glitches.

Re:Apple has not fixed the macOS audio left/right balance bu... by b20000 on Wednesday February 14, 2024 @07:39PM (#39377647)
The point is to avoid the memory pressure from increasing. Have you investigated the allocation behaviour of ALL the code in your application?
Re:Apple has not fixed the macOS audio left/right balance bu... by TwistedWave on Thursday February 15, 2024 @03:58AM (#39380518)
The memory pressure is caused by other apps on the user's machine. My test program just increments a counter when there is a glitch, and requires a trivial amount of memory. Yet, it can see glitches when other apps run in the background allocating memory.