[BUG] volume, octave & tempo not reseting
This commit is contained in:
3
play.cpp
3
play.cpp
@@ -23,6 +23,9 @@ uint32_t interpret_note(uint8_t* buffer, const char note, const char param ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void play_init(const char* new_song) {
|
void play_init(const char* new_song) {
|
||||||
|
volume=64;
|
||||||
|
octave=4;
|
||||||
|
tempo=44100;
|
||||||
if (song != NULL) free(song);
|
if (song != NULL) free(song);
|
||||||
song = (char*)malloc( strlen( new_song ) + 1 );
|
song = (char*)malloc( strlen( new_song ) + 1 );
|
||||||
strcpy( song, new_song );
|
strcpy( song, new_song );
|
||||||
|
|||||||
Reference in New Issue
Block a user