Skip to content

Commit

Permalink
dan's amazing fix for alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed Mar 17, 2024
1 parent 4a93db3 commit c0245df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/amy.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,9 @@ void amy_add_event_internal(struct event e, uint16_t base_osc) {
parse_algorithm_source(&t, e.algo_source);
for(uint8_t i=0;i<MAX_ALGO_OPS;i++) {
if(AMY_IS_SET(t.algo_source[i])) {
t.algo_source[i] += base_osc;
uint32_t algo_source = t.algo_source[i] + base_osc;
d.data = algo_source;
d.param=ALGO_SOURCE_START+i;
d.data = *(uint32_t *)&t.algo_source[i];
add_delta_to_queue(d);
}
}
Expand Down

0 comments on commit c0245df

Please sign in to comment.