|10 @Console/vector $2 &read $5 &type $1 &write $1 &error $1 |20 @Screen/vector $2 &width $2 &height $2 &auto $2 &x $2 &y $2 &addr $2 &pixel $1 &sprite $1 |30 @Audio/vector $2 &position $2 &output $1 &pad $3 &adsr $2 &length $2 &addr $2 &volume $1 &pitch $1 |a0 @File/vector $2 &success $2 &stat $2 &delete $1 &append $1 &name $2 &length $2 &read $2 &write $2 ( ffmpeg -i file.mp3 -acodec pcm_u8 -ac 1 -ar 44100 test.wav ) |0050 @HEADER |2000 @BUFLEN %dbg { #010e DEO } |0100 @on-reset ( -> ) [ LIT2 ff -Audio/volume ] DEO ;chunk .Audio/addr DEO2 ;BUFLEN .Audio/length DEO2 { "test.wav 00 } STH2r .File/name DEO2 ;HEADER .File/length DEO2 ;header .File/read DEO2 ;BUFLEN .File/length DEO2 ;on-screen .Screen/vector DEO2 BRK @on-screen ( -> ) #0000 .Screen/vector DEO2 ;on-audio .Audio/vector DEO2 @on-audio ( -> ) ;chunk .File/read DEO2 [ LIT2 bc -Audio/pitch ] DEO ( played a frame ! ) dbg BRK @header $HEADER @chunk $BUFLEN