From 0545b77cf4be96c621e615eced858d49eef27d20 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 3 Mar 2023 17:24:16 +0100 Subject: [PATCH] ask for filename --- examples/cx16/pcmaudio/stream-wav.p8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/cx16/pcmaudio/stream-wav.p8 b/examples/cx16/pcmaudio/stream-wav.p8 index c75e11784..3c37cdac5 100644 --- a/examples/cx16/pcmaudio/stream-wav.p8 +++ b/examples/cx16/pcmaudio/stream-wav.p8 @@ -29,7 +29,12 @@ main { sub start() { uword buffer = memory("buffer", 1024, 256) - str MUSIC_FILENAME = "music.wav" + str MUSIC_FILENAME = "?"*32 + + txt.print("name of .wav file to play: ") + while 0==txt.input_chars(MUSIC_FILENAME) { + ; until user types a name... + } bool wav_ok = false txt.print("\nchecking ")