Mixing two wav files from flash works in v0.9.3 - crashs in v0.9.4 or higher #970
-
Hello Phil, i just took my esp32 out of the drawer and update a project from last year where i mix two wav files from flash. the esp32 freezes after finishing playing a sound. i tried older versions of your library and it works perfectly with 0.9.3. so in short this is what i use:
...
loop: at a button press i call hitSound.begin()
i set the log level to debug and it seems that it just stops working right at the end of the sound after there is less than 1024 bytes: ..... here the esp32 freezes. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
Hi, i know i said this is not high prio ... but maybe i should open a bug ticket for you? Or do you need more information? |
Beta Was this translation helpful? Give feedback.
-
I am not sure if this is a bug, after all you tell the system to process 2 streams. I suggest that you handle this in your code: e.g. I think you can just mute the stream with no data |
Beta Was this translation helpful? Give feedback.
-
i'm sorry - i don't understand. my goal is to mix two audio files independently and it works perfect in 0.93 .... |
Beta Was this translation helpful? Give feedback.
-
I've been having some trouble with this too. I was hoping the would allow me to keep feeding it into the buffer to stop the mixer from freaking out from lack of data, but it appears to have no effect. What does this function actually do? |
Beta Was this translation helpful? Give feedback.
-
Are you sure that you use the actual version of the library ? This call just makes sure that the player sends out 0 values instead of no output. |
Beta Was this translation helpful? Give feedback.
-
Working with Stream classes gives usually more flexibility and control. I am not sure what could go wrong when you try to mix the output from an AudioPlayer. In any case I would try decrease the timeout in the AudioSource and maybe deacivate the auto fade in the player. |
Beta Was this translation helpful? Give feedback.
Are you sure that you use the actual version of the library ?
This call just makes sure that the player sends out 0 values instead of no output.