aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gaudio/play-vs1053/main.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 15:15:15 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 15:15:15 +1000
commit93da5a0578e7f16ea846eb257f36a24e316ef8d4 (patch)
treeb0e08e991919fdb1fa9079b0ea40c23909cbcd3e /demos/modules/gaudio/play-vs1053/main.c
parent215f31ee3dd27f461540384cdba04b58b481fadc (diff)
downloaduGFX-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-vs1053/main.c')
-rw-r--r--demos/modules/gaudio/play-vs1053/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/modules/gaudio/play-vs1053/main.c b/demos/modules/gaudio/play-vs1053/main.c
index 4e9c4b97..8cfa60f6 100644
--- a/demos/modules/gaudio/play-vs1053/main.c
+++ b/demos/modules/gaudio/play-vs1053/main.c
@@ -83,7 +83,7 @@ repeatplay:
toplay = gfileGetSize(f);
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;
@@ -101,7 +101,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