Skip to content

Commit

Permalink
fix(build): fix another type conversion issue in DmDls_decodeAdpcm
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Apr 29, 2024
1 parent e3911f0 commit 35b19b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dls.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static size_t DmDls_decodeAdpcm(DmDlsWave const* slf, float* out, size_t len) {
}

uint32_t block_count = slf->pcm_size / slf->block_align;
uint32_t frames_per_block = (slf->block_align - 6 * slf->channels) * 2 /* two frames per channel from the header */;
uint32_t frames_per_block = (uint32_t) (slf->block_align - 6 * slf->channels) * 2 /* two frames per channel from the header */;
uint32_t size = frames_per_block * block_count;

if (out == NULL || len == 0) {
Expand Down

0 comments on commit 35b19b0

Please sign in to comment.