Trouble setting volume dynamically #2159
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Use the log level info (or debug) to figure out what is happening... Somehow you access a vector at a position that does not exist. Maybe this is related to a changing number of channels ? ps. I committed a correction, but I am not sure if it covers your special case w/o having further details... |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry or delay in replying. I have more information. decoder.begin(); The volume() call after decoder.begin() crashes: Now I have checked, and during the earlier calls to volume(), the channel count info.channels, which is used in volume(), is 2. The log below seems to show the audio setting change after decoder.begin(). [D] Allocator.h : 76 - Allocated 8 |
Beta Was this translation helpful? Give feedback.
Use the log level info (or debug) to figure out what is happening...
Provide the backtrace to find out what code path is causing this.
Somehow you access a vector at a position that does not exist. Maybe this is related to a changing number of channels ?
ps. I committed a correction, but I am not sure if it covers your special case w/o having further details...