News for hackers. Stuff that matters.

TwistedWave

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.
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

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.

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...
Re:Ask HN: Who needs beta testers? (February 2023) on Thursday February 02, 2023 @03:35AM (#34623818)
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

Re:Channel Swimming Association on Thursday September 29, 2022 @07:22AM (#33019035)
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.

Amagasaki2022
1,923m^3, not 1,923L
I have suggested the trans Canada trail. 24000 km. https://en.m.wikipedia.org/wiki/Trans_Canada_Trail
It's not just the decryption key. It is a gzip file containing the full source code of the decoder!
Re:Mac keyboard shortcuts on Friday August 07, 2020 @07:23AM (#24080712)
I use an USB light sensor to automatically adjust the display brightness with ddcctl.

http://www.yoctopuce.com/EN/products/usb-environmental-senso...

Re:A researcher on how to live a happy life on Thursday July 02, 2020 @03:30PM (#23717030)
Very relevant on this topic, I loved Daniel Gilbert's book, Stumbling on Happiness.

https://www.goodreads.com/book/show/56627.Stumbling_on_Happi...

I don't understand. In most of your samples, there is no bar in the first two bands. Does that mean that your samples are a multiple of 1 MB?

If your read/write rate is not constant, such as in the non-optimized file copy and you display the rate mod 1024 in the first band, I expect to see seemingly random bars that would not show any meaningful information. What am I missing?

Re:Setting Emacs theme based on ambient light on Wednesday April 11, 2018 @12:44PM (#16812935)
I have a Dell P4317Q, a great 43 inch display, and control it from my Mac with ddcctl: https://github.com/kfix/ddcctl
Re:Setting Emacs theme based on ambient light on Wednesday April 11, 2018 @07:01AM (#16809820)
It is possible to purchase a small USB lux meter:

http://www.yoctopuce.com/EN/products/usb-environmental-senso...

I use one to automatically adjust the brightness of my Dell display.

Re:Wal-E: Continuous Archiving for Postgres on Monday February 06, 2017 @12:52PM (#13582025)
The video is online now.
Re:Show HN: Sodaphonic – record and edit audio in the browser on Thursday November 03, 2016 @06:39PM (#12868704)
Hey, I have also done an audio editor and recorder in the browser! All the audio is stored and processed on the server. You can Check it out there: https://twistedwave.com/online/
Re:Show HN: TwistedWave, a Web-Based Audio Editor with an API on Wednesday April 29, 2015 @12:08PM (#9459282)
Hi HN,

After making an OS X and an iOS version of TwistedWave, I have now made an Online version that works in a web browser.

All the audio is stored and processed on the server.

There is a small flash module used to record audio, but I will be happy to get rid of it as soon as we have a browser with support for the AudioWorkerNode.

I have also made an API so you can integrate it with your own web site.

Re:Clang is now feature complete for C++14 on Thursday November 07, 2013 @03:41PM (#6692234)
Having list iterators carry a field pointing to their container wouldn't help you determine the number of objects between two iterators when you splice, which is what you need in order to maintain the object count.

Storing an index in the iterator would not be a solution either. That would mean updating the index in all the existing iterators when you insert an object in the list.

Re:Strange multiplication behavior in Guile Scheme interpreter on Thursday January 24, 2013 @05:36AM (#5108809)
I could reproduce it in guile 2.0.6
Re:Strange multiplication behavior in Guile Scheme interpreter on Thursday January 24, 2013 @03:26AM (#5108353)
It boils down to:

> (* 4294967296 4294967296)

$1 = 0

My guess is that guile uses the native int type to store small numbers, and then switches to a bignums, backed by GNU MP when the native ints are too small. Maybe in that particular case, the check fails, and the computation overflows the native int.

Re:Securing Ubuntu on Sunday January 20, 2013 @02:00PM (#5087735)
I rely a lot on apparmor to secure an Ubuntu installation. It offers a very fine grained control on what processes are allowed to do, what files they can access. I find it more powerful and easier to setup than a chroot.
Re:Startup School 2011 Live Stream on Saturday October 29, 2011 @02:27PM (#3172450)
I found one here: http://startupschool.org/schedule.html [edit] this was indeed from last year. Here is the current one: http://pastie.org/2779036
Re:Concurrent Data Structures on Wednesday July 06, 2011 @07:17AM (#2733353)
Re:How To Safely Store A Password on Friday July 01, 2011 @09:16AM (#2718173)
Indeed, thanks. I fixed it.
Re:How To Safely Store A Password on Friday July 01, 2011 @07:26AM (#2717848)
The goal of hashing the passwords is to not store them in plaintext in the database, in case the server is compromised. In your case, an attacker doesn't need the password, the hash is enough to login.
Re:Apple brings App Store to Mac OS X on Wednesday October 20, 2010 @04:17PM (#1812878)
That would be childal control, then :)