We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b435f commit cda2757Copy full SHA for cda2757
addons/acodec/mp3.c
@@ -98,7 +98,7 @@ ALLEGRO_SAMPLE *_al_load_mp3_f(ALLEGRO_FILE *f)
98
}
99
100
/* Create sample from info variable. */
101
- spl = al_create_sample(info.buffer, info.samples, info.hz,
+ spl = al_create_sample(info.buffer, info.samples / info.channels, info.hz,
102
_al_word_size_to_depth_conf(sizeof(mp3d_sample_t)),
103
_al_count_to_channel_conf(info.channels), true);
104
0 commit comments