Skip to content

Commit

Permalink
Merge pull request #191 from InsanityBringer/fix_libacm
Browse files Browse the repository at this point in the history
Remove two channel minimum of libacm
  • Loading branch information
JeodC authored Apr 26, 2024
2 parents 971694a + 1913bd5 commit 6f3715b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions libacm/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,18 +801,9 @@ int acm_open_decoder(ACMStream **res, void *arg, acm_io_callbacks io_cb, int for
if (read_header(acm) < 0)
goto err_out;

/*
* Overwrite channel info if requested, otherwise
* ignore the channel count on plain ACM files,
* it is frequently wrong, and actual 1-channel
* files are not interising to listen to anyway (samples).
*
* Trust WAVC files, as they seem to be correct?
*/
/* Overwrite channel info if requested. */
if (force_chans > 0)
acm->info.channels = force_chans;
else if (!acm->wavc_file && acm->info.channels < 2)
acm->info.channels = 2;

/* calculate blocks */
acm->info.acm_cols = 1 << acm->info.acm_level;
Expand Down

0 comments on commit 6f3715b

Please sign in to comment.