summaryrefslogtreecommitdiffhomepage
path: root/src/nomute.c
AgeCommit message (Collapse)Author
2024-08-22Rework OS abstractionsMichael Smith
- As much as possible avoid dragging system headers into translation units. This should avoid namespace pollution and, hopefully, speed up builds a little bit. - Avoid leaning on the UCRT so much on Windows - prefer native win32 calls and native file handles except where doing so is inconvenient (in particular, for stat(), which we might try and replace later). - Also, switch from SystemFunction036 to ProcessPrng on Windows. This requires us to generate a stub for bcryptprimitives.dll because Microsoft haven't bothered to provide a link library, but the function is better-documented and seems to be a more direct under-the-hood call as well. Apparently it's what's used by the major web browsers these days, which seems like a good indication it's stable and trusted. - Lastly, remove a bunch of functions and macros and stuff that weren't actually being used. It seems good to try and keep the scope of OS-dependent stuff relatively contained and only add to it when actually required.
2023-06-10Prune some comments and tidy up other minor thingsMichael Smith
2023-05-21Remove a couple more unused headers from nomuteMichael Smith
Pointed out by Bill.
2023-05-17Fix some woopsies I hastily pushed last nightMichael Smith
For the record, most of this wasn't Bill's fault. I shouldn't be fixing up patches in the middle of the night. :^)
2023-05-17Add snd_mute_losefocus backportWillian Henrique