I a getting an assertion failure when running in debug mode on linux:
Assert Failed: l_current_time + m_loop_step < (int)m_channel->get_pitch_lookup_smoothed().size() in ../tartini/sound/notedata.cpp line 117.
I added some debug printing, here is the log:
lookup=1
lookup=2
lookup=3
lookup=4
lookup=5
lookup=6
lookup=7
lookup=8
lookup=9
lookup=10
lookup=11
lookup=12
lookup=13
lookup=14
lookup=15
lookup=16
lookup=17
lookup=18
lookup=19
lookup=20
lookup=21
lookup=22
lookup=23
lookup=24
lookup=25
lookup=26
lookup=27
lookup=28
lookup=29
lookup=30
lookup=31
lookup=32
lookup=33
lookup=34
lookup=35
lookup=36
lookup=37
lookup=38
lookup=39
lookup=40
lookup=41
lookup=42
lookup=43
lookup=44
lookup=45
lookup=46
lookup=47
NoteData Constructor m_loop_start=1516 m_start_chunk=46 framesPerChunk()=32 m_loop_step=44
lookup=48
lookup=49
lookup=50
lookup=51
Before Assertion m_loop_start=1516 current_time=1516 loop_step=44 pitch_lookup_size=816
Assert Failed: l_current_time + m_loop_step < (int)m_channel->get_pitch_lookup_smoothed().size() in ../tartini/sound/notedata.cpp line 117.
(lookup= is an existing printf from channel.cpp)
This error doesn't occur in the original tartini. I added similar printf statements, and I got
NoteData Constructor m_loop_start=2092 m_start_chunk=2 framesPerChunk()=32 loop_step=44
Before Assertion m_loop_start=2092 current_time=2092 loop_step=44 pitch_lookup_size=3072
Do you have any idea where you might have introduced this bug?
I a getting an assertion failure when running in debug mode on linux:
Assert Failed: l_current_time + m_loop_step < (int)m_channel->get_pitch_lookup_smoothed().size() in ../tartini/sound/notedata.cpp line 117.
I added some debug printing, here is the log:
lookup=1
lookup=2
lookup=3
lookup=4
lookup=5
lookup=6
lookup=7
lookup=8
lookup=9
lookup=10
lookup=11
lookup=12
lookup=13
lookup=14
lookup=15
lookup=16
lookup=17
lookup=18
lookup=19
lookup=20
lookup=21
lookup=22
lookup=23
lookup=24
lookup=25
lookup=26
lookup=27
lookup=28
lookup=29
lookup=30
lookup=31
lookup=32
lookup=33
lookup=34
lookup=35
lookup=36
lookup=37
lookup=38
lookup=39
lookup=40
lookup=41
lookup=42
lookup=43
lookup=44
lookup=45
lookup=46
lookup=47
NoteData Constructor m_loop_start=1516 m_start_chunk=46 framesPerChunk()=32 m_loop_step=44
lookup=48
lookup=49
lookup=50
lookup=51
Before Assertion m_loop_start=1516 current_time=1516 loop_step=44 pitch_lookup_size=816
Assert Failed: l_current_time + m_loop_step < (int)m_channel->get_pitch_lookup_smoothed().size() in ../tartini/sound/notedata.cpp line 117.
(lookup= is an existing printf from channel.cpp)
This error doesn't occur in the original tartini. I added similar printf statements, and I got
NoteData Constructor m_loop_start=2092 m_start_chunk=2 framesPerChunk()=32 loop_step=44
Before Assertion m_loop_start=2092 current_time=2092 loop_step=44 pitch_lookup_size=3072
Do you have any idea where you might have introduced this bug?