Started audio device

This commit is contained in:
neauoire 2021-03-24 11:14:41 -07:00
parent 16f9b92d4a
commit 217b5f88f3
2 changed files with 10 additions and 1 deletions

View File

@ -19,6 +19,7 @@
- [tool] fill rect
- [tool] spray
- [tool] pen
- [tool] line
)
%RTN { JMP2r }

View File

@ -401,6 +401,14 @@ file_poke(Uxn *u, Uint16 ptr, Uint8 b0, Uint8 b1)
return b1;
}
Uint8
audio_poke(Uxn *u, Uint16 ptr, Uint8 b0, Uint8 b1)
{
(void)u;
printf("%04x - %02x,%02x\n", ptr, b0, b1);
return b1;
}
Uint8
system_poke(Uxn *u, Uint16 ptr, Uint8 b0, Uint8 b1)
{
@ -478,7 +486,7 @@ main(int argc, char **argv)
devkey = portuxn(&u, "key", ppnil);
devmouse = portuxn(&u, "mouse", ppnil);
portuxn(&u, "file", file_poke);
portuxn(&u, "empty", ppnil);
portuxn(&u, "audio", audio_poke);
portuxn(&u, "empty", ppnil);
portuxn(&u, "empty", ppnil);
portuxn(&u, "empty", ppnil);