Problem with input mixer and memory stream #1325
-
Hi! I have a problem with making a program that uses buttons to play samples.
The button should play the sample from the memorystream named "music". The problem is that i'm not getting any sound. If I put the 2 samples to be played in the playButton() ISR the program works, but that is not what i'm looking for. Why is that happening? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The copier is copying the mixer to i2s. If you just want to play music, you need to reconfigure it e.g. with copier.begin(i2s, music) in the playButton method. The following might work as well: you can reconfigure the mixer to ignore music2 by calling mixer.setWeight(2, 0) |
Beta Was this translation helpful? Give feedback.
The copier is copying the mixer to i2s. If you just want to play music, you need to reconfigure it e.g. with copier.begin(i2s, music) in the playButton method. The following might work as well: you can reconfigure the mixer to ignore music2 by calling mixer.setWeight(2, 0)