diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:15:15 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:15:15 +1000 |
commit | 93da5a0578e7f16ea846eb257f36a24e316ef8d4 (patch) | |
tree | b0e08e991919fdb1fa9079b0ea40c23909cbcd3e /demos/modules/gaudio/play-wave | |
parent | 215f31ee3dd27f461540384cdba04b58b481fadc (diff) | |
download | uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.tar.gz uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.tar.bz2 uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.zip |
gDelayNone/gDelayForever to replace TIME_IMMEDIATE/TIME_INFINITE
Diffstat (limited to 'demos/modules/gaudio/play-wave')
-rw-r--r-- | demos/modules/gaudio/play-wave/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |