The code is in a function call within the audio callback for convenience
However there it also affects the screen code randomly,
so I tried mutex, but I have no experience with this and it does nit work
as expected
Code: Select all
lock4audio = mutex_create()
fn tick_osc( $v, $scal){
mutex_lock( lock4audio )
t_set_matrix( matrix )
$deg = get_prop( osc_point[ $v ], "om" )
$rt = get_prop( osc_point[ $v ], "rt" )
$rt2 = get_prop( osc_point[ $v ], "rt2" )
t_rotate( $deg, 1, $rt, $rt2 )
t_scale( $scal, $scal, $scal)
t_point( osc_point[ $v ] )
t_reset()
mutex_unlock( lock4audio )
ret
}
so, question, am I doing it wrong, or is it not possible with the audiocallback?
its on Android