mirror of
https://git.code.sf.net/p/quake/nuq
synced 2024-11-24 21:12:07 +00:00
Fix use of read/write to write-only for sound, and whitespace cleanup.
This commit is contained in:
parent
75971a4fed
commit
c44715fe21
1 changed files with 61 additions and 61 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue