Skip to content

Commit cda2757

Browse files
allefantSiegeLord
authored andcommitted
fix mp3 files with multiple channels
1 parent 38b435f commit cda2757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/acodec/mp3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ALLEGRO_SAMPLE *_al_load_mp3_f(ALLEGRO_FILE *f)
9898
}
9999

100100
/* Create sample from info variable. */
101-
spl = al_create_sample(info.buffer, info.samples, info.hz,
101+
spl = al_create_sample(info.buffer, info.samples / info.channels, info.hz,
102102
_al_word_size_to_depth_conf(sizeof(mp3d_sample_t)),
103103
_al_count_to_channel_conf(info.channels), true);
104104

0 commit comments

Comments
 (0)