Browse code

Started audio device

neauoire authored on 24/03/2021 18:14:41
Showing 2 changed files
... ...
@@ -19,6 +19,7 @@
19 19
 		- [tool] fill rect
20 20
 		- [tool] spray
21 21
 		- [tool] pen
22
+		- [tool] line
22 23
 )
23 24
 
24 25
 %RTN   { JMP2r }
... ...
@@ -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);