mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
- Use SINGLE_TICK_RENDERING mode for rendering one tick per invocation of _4klang_render - Example for running player on Mac OSX
10 lines
518 B
Bash
10 lines
518 B
Bash
echo "Copying 4klang.asm and 4klang.inc from parent dir"
|
|
echo "Enabling SINGLE_TICK_RENDERING (and AUTHORING) flag for rendering example"
|
|
echo "You need sox installed to get audio output"
|
|
sed -e 's/\;\%define SINGLE_TICK_RENDERING/\%define SINGLE_TICK_RENDERING/' ../4klang.inc | \
|
|
sed -e 's/\;\%define AUTHORING/\%define AUTHORING/' > 4klang.inc
|
|
cp ../4klang.asm .
|
|
yasm -f macho 4klang.asm
|
|
gcc -Wl,-no_pie -m32 4klang.o 4klangrender.c -o 4klangrender
|
|
./4klangrender | sox -t raw -b 32 -e float -r 44100 -c 2 - -d
|