mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Amend r6174 to un-break libxmp-lite.
git-svn-id: https://svn.eduke32.com/eduke32@6179 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9f871a7587
commit
08326d19dd
2 changed files with 5 additions and 5 deletions
|
@ -523,7 +523,7 @@ void libxmp_mixer_softmixer(struct context_data *ctx)
|
|||
|
||||
if (mix_fn != NULL) {
|
||||
mix_fn(vi, buf_pos, samples,
|
||||
vol_l >> 8, vol_r >> 8, (int) step * (1 << SMIX_SHIFT), rsize, delta_l, delta_r);
|
||||
vol_l >> 8, vol_r >> 8, (int) (step * (1 << SMIX_SHIFT)), rsize, delta_l, delta_r);
|
||||
}
|
||||
|
||||
buf_pos += mix_size;
|
||||
|
|
|
@ -925,12 +925,12 @@ static void process_frequency(struct context_data *ctx, int chn, int act)
|
|||
|
||||
/* For xmp_get_frame_info() */
|
||||
xc->info_pitchbend = linear_bend >> 7;
|
||||
xc->info_period = (int) period * 4096;
|
||||
xc->info_period = (int) (period * 4096);
|
||||
|
||||
if (IS_PERIOD_MODRNG()) {
|
||||
CLAMP(xc->info_period,
|
||||
(int) libxmp_note_to_period(ctx, MAX_NOTE_MOD, xc->finetune, 0) * 4096,
|
||||
(int) libxmp_note_to_period(ctx, MIN_NOTE_MOD, xc->finetune, 0) * 4096);
|
||||
(int) (libxmp_note_to_period(ctx, MAX_NOTE_MOD, xc->finetune, 0) * 4096),
|
||||
(int) (libxmp_note_to_period(ctx, MIN_NOTE_MOD, xc->finetune, 0) * 4096));
|
||||
} else if (xc->info_period < (1 << 12)) {
|
||||
xc->info_period = (1 << 12);
|
||||
}
|
||||
|
@ -1847,7 +1847,7 @@ void xmp_get_frame_info(xmp_context opaque, struct xmp_frame_info *info)
|
|||
info->speed = p->speed;
|
||||
info->bpm = p->bpm;
|
||||
info->total_time = p->scan[p->sequence].time;
|
||||
info->frame_time = (int) p->frame_time * 1000;
|
||||
info->frame_time = (int) (p->frame_time * 1000);
|
||||
info->time = (int) p->current_time;
|
||||
info->buffer = s->buffer;
|
||||
|
||||
|
|
Loading…
Reference in a new issue