Jonne Valola / PokittoLib Featured

Dependents:   YATTT sd_map_test cPong SnowDemo ... more

PokittoLib

Library for programming Pokitto hardware

How to Use

  1. Import this library to online compiler (see button "import" on the right hand side
  2. DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
  3. Change My_settings.h according to your project
  4. Start coding!
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;
 }