PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)
Diff: POKITTO_CORE/PokittoSound.cpp
- Revision:
- 47:8f962908f6a7
- Parent:
- 46:e7e438368e16
diff -r e7e438368e16 -r 8f962908f6a7 POKITTO_CORE/PokittoSound.cpp --- a/POKITTO_CORE/PokittoSound.cpp Mon May 21 18:03:14 2018 +0000 +++ b/POKITTO_CORE/PokittoSound.cpp Mon May 21 18:08:52 2018 +0000 @@ -43,7 +43,7 @@ * * License for Gamebuino-identical code: * - * (C) Copyright 2014 Aurélien Rodot. All rights reserved. + * (C) Copyright 2014 Aur�lien Rodot. All rights reserved. * * This file is part of the Gamebuino Library (http://gamebuino.com) * @@ -933,10 +933,16 @@ } uint32_t Sound::getMusicStreamElapsedSec() { + #if POK_STREAMING_MUSIC return streamcounter/POK_AUD_FREQ; + #endif + return 0; } uint32_t Sound::getMusicStreamElapsedMilliSec() { + #if POK_STREAMING_MUSIC return streamcounter/(POK_AUD_FREQ/1000); + #endif + return 0; }