|
@@ -70,11 +70,8 @@ snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp,
|
|
|
loopend = sampleend;
|
|
|
|
|
|
/* be sure loop points start < end */
|
|
|
- if (sp->v.loopstart >= sp->v.loopend) {
|
|
|
- int tmp = sp->v.loopstart;
|
|
|
- sp->v.loopstart = sp->v.loopend;
|
|
|
- sp->v.loopend = tmp;
|
|
|
- }
|
|
|
+ if (sp->v.loopstart >= sp->v.loopend)
|
|
|
+ swap(sp->v.loopstart, sp->v.loopend);
|
|
|
|
|
|
/* compute true data size to be loaded */
|
|
|
truesize = sp->v.size + BLANK_HEAD_SIZE;
|