Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: YATTT sd_map_test cPong SnowDemo ... more
PokittoLib
Library for programming Pokitto hardware
How to Use
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
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;
}