o
odinpkg.dev
packages / library / VU_Meter_for_headphones_in_Odin

VU_Meter_for_headphones_in_Odin

6b80c72library

Something that I made just for the fun of it, but that come out something really cool.

No license · updated 3 months ago

VU Meter for headphones in Odin

Something that I made just for the fun of it, but that come out something really cool.

Description

A very simple VU Meter that is made in Odin and animates the needle of the VU Meter and with some kind os pseudo maping of dB, and with the animation of the intensity of the peak led in the red zone. The image from the vu_meter is a edited image from a vu_meter that come from Wikipedia and that I toke the needle off and made some cosmetic editions to look prettier, see references, then I programatically draw the correct animated needle over it. In this case you can select the input sink_monitor, see the shell script, it uses pipewire on ARCH Linux.

Image

./output_vu_meter.png

How to compile

# if you see "Could not find the compiled miniaudio library", run:

make -C "$(odin root)/vendor/miniaudio/src"

# To compile the program do:

make 
./vu_meter.exe <device_id>

./vu_meter.exe 0

# or

./vu_meter.exe 1

# or 5

References

License

MIT Open Source License

Have fun

Best regards,
Joao Carvalho