Commit graph

65 commits

Author SHA1 Message Date
Josh Hansen d1bc44a6ca Static header, log below it, status at bottom 2023-07-21 16:58:50 -07:00
Josh Hansen da3f0b406b Improve status output 2023-07-21 15:38:39 -07:00
Josh Hansen 80475d5adb Gracefully handle attempted removal of annotations when none exist 2023-07-17 15:33:40 -07:00
Josh Hansen 04b581ed5e Don't store the filename in annotations
It becomes redundant because annotations are attached as xattr to files
2023-07-17 15:33:26 -07:00
Josh Hansen 20dd980b46 Just don't output anything when there's no annotation 2023-07-06 14:22:10 -07:00
Josh Hansen 1c697844ab Comment 2023-07-06 14:21:55 -07:00
Josh Hansen 988462b8e2 Implement get command, rename u -> d 2023-07-02 14:49:03 -07:00
Josh Hansen 456acbc503 Adjust subcommand names 2023-06-29 15:58:25 -07:00
Josh Hansen e67afc98c4 Rename main binary to 'tater' 2023-06-29 15:58:18 -07:00
Josh Hansen f5fe88e4ef Move unannotation into the binary 2023-06-29 15:52:31 -07:00
Josh Hansen 19cabebfb3 Loop the dataload thread 2023-06-29 14:58:32 -07:00
Josh Hansen 28e173f224 fmt 2023-06-29 14:58:20 -07:00
Josh Hansen 6f1ffae48d Clear the buffer when annotation is complete, triggering the next file to load 2023-06-29 14:54:50 -07:00
Josh Hansen 3f881f0c64 Remove spare semicolon 2023-06-29 14:53:30 -07:00
Josh Hansen cf22b59f02 All variants are handled, remove wildcard 2023-06-29 14:53:15 -07:00
Josh Hansen 5b87c69270 When there are no available paths to process, quit 2023-06-29 14:52:40 -07:00
Josh Hansen 734144a947 Implement Command::NextFile 2023-06-29 14:42:10 -07:00
Josh Hansen 78beff38b0 Hold terminal_rows in Arc<Cell<...>> to allow closure and non-closure access 2023-06-29 14:41:12 -07:00
Josh Hansen a16b1d33d6 Implement toggling of playback speed 2023-06-29 14:39:18 -07:00
Josh Hansen 78a0f99aea Handle Command::ResizeTerminal 2023-06-29 14:18:19 -07:00
Josh Hansen 4784fc7ff0 Finally cargo fmt 2023-06-29 13:56:14 -07:00
Josh Hansen 0b12d4fdd4 Extract annotation writing 2023-06-29 10:52:56 -07:00
Josh Hansen 3e6dc290f0 Script to remove annotations 2023-06-29 10:42:32 -07:00
Josh Hansen 1ee2090a87 Implement file annotation 2023-06-29 10:39:35 -07:00
Josh Hansen 07ac79e71e Standardize log output 2023-06-29 10:30:45 -07:00
Josh Hansen dd1c3c8908 Jump 15s at a time 2023-06-29 09:43:30 -07:00
Josh Hansen b6db840208 Check for existing annotations 2023-06-28 15:13:31 -07:00
Josh Hansen c4c509c1e1 Spell out the vision 2023-06-28 13:56:24 -07:00
Josh Hansen 5b944b7df4 Handle mono as well as stereo files 2023-06-27 17:12:57 -07:00
Josh Hansen 8ffc84e306 Rename project to audiotater 2023-06-27 15:58:05 -07:00
Josh Hansen aa828f2db5 auto format 2023-06-27 15:57:16 -07:00
Josh Hansen a07d1634d9 Parse command line arguments before entering raw mode / alternate screen or hiding cursor 2023-06-27 15:55:57 -07:00
Josh Hansen 232fb69de9 Merge extracted audiotater branch 2023-06-27 15:48:10 -07:00
Josh Hansen 6497ba81e4 Initial commit 2023-06-27 00:31:47 +00:00
Josh Hansen d1b5330d48 Rewind on undo 2023-06-26 16:57:09 -07:00
Josh Hansen 667f04a214 Cutesy per-class icons 2023-06-26 16:57:04 -07:00
Josh Hansen 64cef48b4f Further improvements to console output 2023-06-26 16:48:40 -07:00
Josh Hansen 9cac22db96 Improve terminal output 2023-06-26 15:56:36 -07:00
Josh Hansen abe291c74b Hopefully implement undo, terminal output improvements, writing xattrs upon annotation completion, other cleanups 2023-06-23 18:13:11 -07:00
Josh Hansen 8a5997c82f Build up annotations in memory rather than writing them immediately 2023-06-19 16:52:36 -07:00
Josh Hansen 7238d934c5 Move mp3 decoding to separate thread; allows inputs to be processed asap 2023-06-19 15:39:52 -07:00
Josh Hansen 0c909defee Remove unused import 2023-06-19 15:39:11 -07:00
Josh Hansen 3e777f47b4 Begin playback before entire file is buffered
The fair mutex may or may not be part of the solution, but the guarantees it gives seem appropriate anyhow
2023-06-16 21:45:49 -07:00
Josh Hansen 1f67e0fcd2 Initial port to pre-buffered playback
TODO: Use RwLock to allow playback to begin before buffer is fully populated?
2023-06-15 16:57:19 -07:00
Josh Hansen 0097d8ef29 Get channel count from stream 2023-06-14 20:11:35 -07:00
Josh Hansen 487f093afe Implement rewind 2023-06-13 18:13:32 -07:00
Josh Hansen bc554c2d59 Implement fast forward 2023-06-12 16:49:23 -07:00
Josh Hansen d8f853777f Display help on ? 2023-06-12 16:06:13 -07:00
Josh Hansen dfc9ccc8b4 Unify Event -> Command conversion 2023-05-30 20:59:30 -07:00
Josh Hansen 2bc6aaca21 Theoretically support media keys 2023-05-30 20:41:15 -07:00