| ... | ... |
@@ -401,6 +401,14 @@ file_poke(Uxn *u, Uint16 ptr, Uint8 b0, Uint8 b1) |
| 401 | 401 |
return b1; |
| 402 | 402 |
} |
| 403 | 403 |
|
| 404 |
+Uint8 |
|
| 405 |
+audio_poke(Uxn *u, Uint16 ptr, Uint8 b0, Uint8 b1) |
|
| 406 |
+{
|
|
| 407 |
+ (void)u; |
|
| 408 |
+ printf("%04x - %02x,%02x\n", ptr, b0, b1);
|
|
| 409 |
+ return b1; |
|
| 410 |
+} |
|
| 411 |
+ |
|
| 404 | 412 |
Uint8 |
| 405 | 413 |
system_poke(Uxn *u, Uint16 ptr, Uint8 b0, Uint8 b1) |
| 406 | 414 |
{
|
| ... | ... |
@@ -478,7 +486,7 @@ main(int argc, char **argv) |
| 478 | 486 |
devkey = portuxn(&u, "key", ppnil); |
| 479 | 487 |
devmouse = portuxn(&u, "mouse", ppnil); |
| 480 | 488 |
portuxn(&u, "file", file_poke); |
| 481 |
- portuxn(&u, "empty", ppnil); |
|
| 489 |
+ portuxn(&u, "audio", audio_poke); |
|
| 482 | 490 |
portuxn(&u, "empty", ppnil); |
| 483 | 491 |
portuxn(&u, "empty", ppnil); |
| 484 | 492 |
portuxn(&u, "empty", ppnil); |