From 93da5a0578e7f16ea846eb257f36a24e316ef8d4 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 8 Jul 2018 15:15:15 +1000 Subject: gDelayNone/gDelayForever to replace TIME_IMMEDIATE/TIME_INFINITE --- demos/modules/gaudio/play-wave/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/modules/gaudio/play-wave') diff --git a/demos/modules/gaudio/play-wave/main.c b/demos/modules/gaudio/play-wave/main.c index 9717b4fe..c6a5ea84 100644 --- a/demos/modules/gaudio/play-wave/main.c +++ b/demos/modules/gaudio/play-wave/main.c @@ -165,7 +165,7 @@ repeatplay: gdispDrawString(0, gdispGetHeight()/2, "Playing...", font, GFX_YELLOW); while(toplay) { // Get a buffer to put the data into - pd = gfxBufferGet(TIME_INFINITE); // This should never fail as we are waiting forever + pd = gfxBufferGet(gDelayForever); // This should never fail as we are waiting forever // How much data can we put in len = toplay > pd->size ? pd->size : toplay; @@ -183,7 +183,7 @@ repeatplay: gfileClose(f); // Wait for the play to finish - gaudioPlayWait(TIME_INFINITE); + gaudioPlayWait(gDelayForever); gdispDrawString(0, gdispGetHeight()/2+10, "Done", font, GFX_GREEN); // Repeat the whole thing -- cgit v1.2.3