Skip to content

Latest commit

 

History

History
54 lines (50 loc) · 1.23 KB

File metadata and controls

54 lines (50 loc) · 1.23 KB

BYTEFALL

Bytefall preview Renders any file as pixels and plays it as audio

Build

Windows

Requires MSYS2 + UCRT64.

pacman -S mingw-w64-ucrt-x86_64-SDL2
gcc main.c -o bytefall.exe -I/ucrt64/include/SDL2 -L/ucrt64/lib -lmingw32 -lSDL2main -Wl,-Bstatic -lSDL2 -Wl,-Bdynamic -lm -mwindows -lole32 -loleaut32 -limm32 -lwinmm -lversion -lsetupapi -lcfgmgr32

Linux

Requires SDL2

sudo apt install libsdl2-dev
gcc bytefall.c -o bytefall $(sdl2-config --cflags --libs) -lm

macOS

Requires SDL2 via Homebrew

brew install sdl2
gcc bytefall.c -o bytefall $(sdl2-config --cflags --libs) -lm

Usage

Drag and drop any file onto the window or pass it as an argument: ./bytefall myfile.bin

Pixel modes

Mode Bytes per pixel
8G 1 - grayscale
RGB 3 - color (default)
RGBA 4 - color with alpha
16G 2 - 16-bit grayscale

Controls

Key Action
Space Play / Pause
R Restart
M Mute
/ Speed
? Help
Mouse wheel Scroll

IMG2BIN

You can create images like that using img2bin IMG2BIN