rchanrussell / rpi_audio_looper_c

An audio looper for the Raspberry Pi, in C, UART interface

Home Page:https://rschanrussell.wordpress.com/projects/raspberry-pi-audio-looper/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Master's masterLength index cannot be a single value

rchanrussell opened this issue · comments

This pertains to the use of more than one group. If group 0 is uses, masterLength will be the largest offset of any track in that group. However, if you switch to group 1, masterLength will still be set to group 0's master length. Thus if group 1 has shorter tracks an undesired silence will be observed while masterCurrIdx passes group 1's largest track's endIdx until it reaches masterLength.

Alternatively, if group 1 has a longer track than group 0, group 0 will experience the silence.

Solution: make masterLength an array who's index is the selectedGroup.

Resolved with commit ca8d717