Skip to content

Commit

Permalink
Fix mp3 player
Browse files Browse the repository at this point in the history
  • Loading branch information
DantSu committed Nov 14, 2023
1 parent 779ccc5 commit 35ac8b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###########################################################

TARGET=Telmi Story Teller
VERSION=0.3.0
VERSION=0.3.1

###########################################################

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The story teller is compatible with stories exported from [STUdio](https://githu

### Download the installation files

- [Download the latest version of Telmi](https://github.com/DantSu/Telmi-story-teller/releases/download/0.3.0/TelmiOS_v0.3.0.zip)
- [Download the latest version of Telmi](https://github.com/DantSu/Telmi-story-teller/releases/download/0.3.1/TelmiOS_v0.3.1.zip)

### Format your SD card as FAT32 (not exFAT!)

Expand Down Expand Up @@ -46,9 +46,9 @@ Make sure you choose: `For use with all systems and devices (FAT)`

Chrome already has a tool to format an SD card. Insert the card into your Chromebook, right-click it and click **Format Device**, make sure `FAT32` is selected under **Format** and click or tap **Erase & Format**.

### Unzip TelmiOS_v0.3.0.zip
### Unzip TelmiOS_v0.3.1.zip

Put the content of `TelmiOS_v0.3.0.zip` at the root of the SD card.
Put the content of `TelmiOS_v0.3.1.zip` at the root of the SD card.

### Power on your Miyoo

Expand Down
4 changes: 3 additions & 1 deletion src/storyTeller/music_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ void musicplayer_load(void)
musicIndex = 0;
}

double position = 0;

video_displayBlackScreen();
display_setScreen(false);
autosleep_lock();
audio_play(MUSICPLAYER_RESOURCES, musicList[musicIndex], 0);
audio_play(MUSICPLAYER_RESOURCES, musicList[musicIndex], &position);
Mix_HookMusicFinished(callback_musicplayer_autoplay);
}

Expand Down
3 changes: 2 additions & 1 deletion static/build/.tmp_update/runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ main() {

# Init
rm /tmp/.offOrder 2> /dev/null
HOME=/mnt/SDCARD/StoryTeller/
HOME=/mnt/SDCARD/Stories/

mkdir -m 777 -p /mnt/SDCARD/Saves
storyteller_jpg2png

bootScreen "Boot"
Expand Down

0 comments on commit 35ac8b7

Please sign in to comment.