patch-2.1.104 linux/drivers/sound/gus_wave.c
Next file: linux/drivers/sound/sb_common.c
Previous file: linux/drivers/sound/dev_table.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Thu May 21 13:45:02 1998
- Orig file:
v2.1.103/linux/drivers/sound/gus_wave.c
- Orig date:
Wed May 20 19:10:40 1998
diff -u --recursive --new-file v2.1.103/linux/drivers/sound/gus_wave.c linux/drivers/sound/gus_wave.c
@@ -384,7 +384,7 @@
gus_write16(reg, (unsigned short) ((address >> 7) & 0xffff));
gus_write16(reg + 1, (unsigned short) ((address << 9) & 0xffff)
+ (frac << 5));
- /* Could writing twice fix problems with GUS_VOICE_POS() ? Lets try... */
+ /* Could writing twice fix problems with GUS_VOICE_POS()? Let's try. */
gus_delay();
gus_write16(reg, (unsigned short) ((address >> 7) & 0xffff));
gus_write16(reg + 1, (unsigned short) ((address << 9) & 0xffff)
@@ -500,12 +500,13 @@
int sample_no;
if ((sample_no = sample_map[voice]) != -1) {
- if (position < samples[sample_no].len)
+ if (position < samples[sample_no].len) {
if (voices[voice].volume_irq_mode == VMODE_START_NOTE)
voices[voice].offset_pending = position;
else
gus_write_addr(0x0a, sample_ptrs[sample_no] + position, 0,
samples[sample_no].mode & WAVE_16_BITS);
+ }
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov