aboutsummaryrefslogtreecommitdiff
path: root/platform/darwin.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-08-15Initial refactor of plugin system (darwin only)plugin-refactorNicholas Tay1-6/+4
Darwin only for now since that's what I'm on, will migrate the others a bit later. Trying out a different plugin system that probably makes more sense as an interface to each other. Might shuffle things around even more later. This is based somewhat on Tsoding's audio visualiser plugin system, I thought that was way more elegant (the 'state' object), as opposed to whatever the hell we were doing.
2022-12-09Initial working Obj-C sound (leak)Nicholas Tay1-12/+7
It seems to memory leak so needs to be fixed, but this was before I had to return my work MacBook - until I get my own!
2022-11-03Initial macOS support (key hooking only, no sound yet)Nicholas Tay1-0/+167
Thought I'd commit this first, since it'll be some Objective-C stuff coming (tested it out in another mini probe). Mostly has stuff similar to Linux so probably should abstract some out to *nix common. But uses IOKit to get into the typing events. Will use Obj-C for now for sound, since it'll probably be a NSSound thing, hooked up with NSCache (like Linux) to reduce loading into NS format multiple times. Also probably would need to free the sound object on finish sound, and not sure how I'd do Obj-C delegates from C... it would be fun to figure it out though eventually Also switched the Makefile to use clang, it's warnings do seem to be nicer :) and is what `gcc` is aliased to on a Mac by default anyway.