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:
- 58:5f58a2846a20
- Parent:
- 52:c04087025cab
- Child:
- 66:6281a40d73e6
--- a/POKITTO_CORE/PokittoSound.cpp Tue Oct 02 20:38:50 2018 +0000
+++ b/POKITTO_CORE/PokittoSound.cpp Sun Oct 07 10:06:28 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)
*
@@ -80,9 +80,9 @@
/** discrete hardware volume control **/
uint8_t Pokitto::discrete_vol = 0;
-uint8_t const Pokitto::discrete_vol_levels[8] {0,32,64,96,128,160,192,224};
-uint8_t const Pokitto::discrete_vol_hw_levels[8] {0,27,64,96,36,117,127,127};
-uint8_t const Pokitto::discrete_vol_multipliers[8] {0,127,127,127,192,192,255,255};
+uint8_t const Pokitto::discrete_vol_levels[] = {0,32,64,96,128,160,192,224};
+uint8_t const Pokitto::discrete_vol_hw_levels[] = {0,27,64,96,36,117,127,127};
+uint8_t const Pokitto::discrete_vol_multipliers[] = {0,127,127,127,192,192,255,255};
Pokitto::Core _soundc;
@@ -135,6 +135,7 @@
uint8_t Sound::chanVolumes[NUM_CHANNELS];
#if (POK_ENABLE_SOUND < 1)
+ #undef NUM_CHANNELS
#define NUM_CHANNELS 0
#endif
@@ -894,6 +895,7 @@
return 1;
} else return 0; //no stream
#endif // POK_STREAMING_MUSIC
+ return 0;
}
void Sound::pauseMusicStream() {