HackerTrans
TopNewTrendsCommentsPastAskShowJobs

TwistedWave

no profile record

comments

TwistedWave
·2 वर्ष पहले·discuss
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.
TwistedWave
·2 वर्ष पहले·discuss
Why wouldn't it be possible to mlock all the memory pages used by the real-time thread?

I do my best to do it on the application side. It would be nice if Apple's CoreAudio did the same.

If you mean that it is difficult to identify the pages used, that is true, but I found a great way to do just that. I keep track of all the pages I mlock(), list all the remaining pages, and mprotect them to crash if I accidentally access memory that was not mlocked. That helped me identify a couple of pages I forgot, such as the one that contains the __stack_chk_guard

And regarding the code pages, for some reason I get a permission denied error if I try to mlock them. Not sure why.

There is no mlockall() on macOS, but if there was one, I could delegate the real-time audio handling code to a separate executable, and call mlockall(). I would be guaranteed all the pages used by the real-time thread would be mlocked.

And by the way if you are interested in the report I sent to Apple, you can find all the details with the sample code to reproduce the problem there:

https://twistedwave.com/AudioGlitches.zip
TwistedWave
·2 वर्ष पहले·discuss
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.
TwistedWave
·2 वर्ष पहले·discuss
I have just reported a bug where high memory pressure could cause memory pages from the real-time audio thread to get swapped out, causing audio glitches. I am not hopeful for a timely resolution now...
TwistedWave
·3 वर्ष पहले·discuss
https://twistedwave.com/windows

TwistedWave, is an audio editor for macOS, iOS and Online, and I have almost finished porting it to Windows. I would appreciate any help in testing the Windows version before I release it officially.

Contact: beta-testing@domain or thomas@domain
TwistedWave
·4 वर्ष पहले·discuss
From the association’s website, you can learn :

France/England swims are no longer permitted. When the French authorities permitted these they usually started from Cap Gris Nez.