X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cd_linux.c;h=2db702cb3f9f2b685ee644377b51e49c997a4fea;hp=6a64e4b590b37e4811767ccdcca8f86218cb1245;hb=712073c2b82a8d7289ced8b7cf16535b6c5550b4;hpb=29f982401015bb8aeb66b3d6b778b28f42f4741a diff --git a/cd_linux.c b/cd_linux.c index 6a64e4b5..2db702cb 100644 --- a/cd_linux.c +++ b/cd_linux.c @@ -105,7 +105,7 @@ void CDAudio_SysSetVolume (float volume) if (cdfile == -1) return; - vol.channel0 = vol.channel1 = volume * 255; + vol.channel0 = vol.channel1 = (__u8)(volume * 255); vol.channel2 = vol.channel3 = 0; if (ioctl (cdfile, CDROMVOLCTRL, &vol) == -1) @@ -113,7 +113,7 @@ void CDAudio_SysSetVolume (float volume) } -int CDAudio_SysPlay (qbyte track) +int CDAudio_SysPlay (unsigned char track) { struct cdrom_tocentry entry; struct cdrom_ti ti;