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 | |
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')
-rw-r--r-- | demos/modules/gaudio/oscilloscope/gwinosc.c | 2 | ||||
-rw-r--r-- | demos/modules/gaudio/play-vs1053/main.c | 4 | ||||
-rw-r--r-- | demos/modules/gaudio/play-wave/main.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/demos/modules/gaudio/oscilloscope/gwinosc.c b/demos/modules/gaudio/oscilloscope/gwinosc.c index 17ea9566..e46640e8 100644 --- a/demos/modules/gaudio/oscilloscope/gwinosc.c +++ b/demos/modules/gaudio/oscilloscope/gwinosc.c @@ -118,7 +118,7 @@ void gwinScopeWaitForTrace(GHandle gh) { return; /* Wait for a set of audio conversions */ - paud = gaudioRecordGetData(TIME_INFINITE); + paud = gaudioRecordGetData(gDelayForever); /* Ensure we are drawing in the right area */ #if GDISP_NEED_CLIP 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 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 |