Add ability to listen to input

This commit is contained in:
Alexander Heldt
2025-11-14 19:15:31 +01:00
parent 1dcbff3e22
commit bc5297196e
4 changed files with 167 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
import gleam/io
import gleam/erlang/process
import mpv/mpv
pub fn main() -> Nil {
io.println("musicplayer")
let exit = process.new_subject()
let assert Ok(_) = mpv.new(exit)
process.receive_forever(exit)
}