Fix use of read/write to write-only for sound, and whitespace cleanup.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2000-12-08 00:04:44 +00:00
parent 75971a4fed
commit c44715fe21

View file

@ -65,7 +65,8 @@ qboolean SNDDMA_Init(void)
// open /dev/dsp, confirm capability to mmap, and get size of dma buffer
audio_fd = open("/dev/dsp", O_RDWR);
// audio_fd = open("/dev/dsp", O_RDWR);
audio_fd = open("/dev/dsp", O_WRONLY);
if (audio_fd < 0)
{
perror("/dev/dsp");
@ -282,4 +283,3 @@ Send sound to device if buffer isn't really the dma buffer
void SNDDMA_Submit(void)
{
}