sointu/tests
5684185+vsariola@users.noreply.github.com 0e10cd2ae8 fix(amd64-386): sample oscillator hard crash
The sample-based oscillators converted the samplepos to an integer
and did samplepos < loop_end comparison to check if we are past
looping. Unfortunately, the < comparison was done in signed math.
Normally, this should never happen, but if the x87 FPU stack
overflowed exactly at right position, we then got 0x80000000 in
samplepos, which is equal to -2147483648. Thus, we considered that
sample is not looping and read the sample table at position
-2147483648, well out of bound. TL;DR changing jl to jb makes sure
we always wrap within to sample table, no matter what.

Fixes #149.
2024-09-22 09:04:47 +03:00
..
expected_output test: add unit test for unisons with phase = 0 2024-08-17 11:06:17 +03:00
CMakeLists.txt fix(amd64-386): sample oscillator hard crash 2024-09-22 09:04:47 +03:00
test_add_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_add.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_addp_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_addp.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_aux_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_aux.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_chords.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_clip_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_clip.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_compressor_stereo.yml feat: change the compressor unit to apply post-gain instead of pregain. 2021-03-20 17:01:04 +02:00
test_compressor.yml feat: change the compressor unit to apply post-gain instead of pregain. 2021-03-20 17:01:04 +02:00
test_crush_stereo.yml fix(vm): change crush resolution to bits (closes #79) 2023-09-23 21:23:05 +03:00
test_crush.yml fix(vm): change crush resolution to bits (closes #79) 2023-09-23 21:23:05 +03:00
test_dbgain_stereo.yml feat(vm): add dbgain unit, where gain is defined in decibels 2023-10-23 21:57:29 +03:00
test_dbgain.yml feat(vm): add dbgain unit, where gain is defined in decibels 2023-10-23 21:57:29 +03:00
test_delay_dampmod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_delay_drymod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_delay_feedbackmod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_delay_flanger.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_delay_notetracking.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_delay_pregainmod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_delay_reverb.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_delay_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_delay.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_distort_mod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_distort_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_distort.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_envelope_mod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_envelope_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_envelope.yml feat(tests): test also gain parameter in envelopes 2021-04-10 15:58:02 +03:00
test_filter_band.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_filter_freqmod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_filter_high.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_filter_low.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_filter_peak.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_filter_resmod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_filter_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_gain_stereo.yml test: the filenames of test_gain and test_gain_stereo were flipped 2023-10-23 22:05:28 +03:00
test_gain.yml test: the filenames of test_gain and test_gain_stereo were flipped 2023-10-23 22:05:28 +03:00
test_hold_mod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_hold_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_hold.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_in_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_in.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_invgain_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_invgain.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_loadnote_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_loadnote.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_loadval_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_loadval.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_mul_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_mul.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_mulp_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_mulp.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_multiple_instruments.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_noise_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_noise.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_colormod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_detunemod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_frequencymod_stereo.yml feat(vm): add frequency modulation for oscillators 2023-10-07 21:48:03 +03:00
test_oscillat_frequencymod.yml feat(vm): add frequency modulation for oscillators 2023-10-07 21:48:03 +03:00
test_oscillat_gainmod_stereo.yml fix(templates/wasm): $WRK was modified by stereo oscillators, messing up all modulations targeting units after the unit 2023-04-06 15:03:16 +03:00
test_oscillat_gainmod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_gate.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_lfo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_phasemod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_pulse.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_sample_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_sample.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_shapemod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_sine.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_transposemod.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_trisaw.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_unison_phase.yml test: add unit test for unisons with phase = 0 2024-08-17 11:06:17 +03:00
test_oscillat_unison_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillat_unison.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_oscillator_crash.c fix(amd64-386): sample oscillator hard crash 2024-09-22 09:04:47 +03:00
test_out.yml fix(vm/compiler/templates/wasm): add support for mono out 2023-09-24 10:27:34 +03:00
test_outaux_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_outaux.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_panning_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_panning.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_polyphony_init.yml fix(vm/compiler): invert the logic of the release flag in the voices (closes #102) 2023-09-23 15:56:46 +03:00
test_polyphony.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_pop_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_pop.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_push_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_push.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_receive_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_receive.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_render_samples_api.c refactor(vm): rename Commands/Values to Opcodes/Operands 2023-10-18 19:53:47 +03:00
test_render_samples.c refactor(vm): rename Commands/Values to Opcodes/Operands 2023-10-18 19:53:47 +03:00
test_render_samples.h refactor(templates, tests): rename C-header defines consistently with Score.go 2021-02-28 16:07:55 +02:00
test_renderer.c code/text formatting and cleaning up whitespace 2023-09-24 10:47:54 +03:00
test_send_global_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_send_global.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_send_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_send.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_speed.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_sync.yml feat: add the ability to use Sointu as a sync-tracker 2021-03-09 23:52:33 +02:00
test_xch_stereo.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
test_xch.yml feat(sointu, tracker,...): restructure domain & tracker models 2021-02-28 14:24:54 +02:00
wasm_test_renderer.es6 fix(vm): change crush resolution to bits (closes #79) 2023-09-23 21:23:05 +03:00