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!

Files at this revision

API Documentation at this revision

Comitter:
Pokitto
Date:
Mon May 21 18:08:52 2018 +0000
Parent:
46:e7e438368e16
Child:
48:30b068b0d9e8
Commit message:
Streamcounter fixed

Changed in this revision

POKITTO_CORE/PokittoSound.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
 }