mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 12:11:34 +00:00
seems to work now :) probably needs harder testing
This commit is contained in:
parent
3bbb9ec7d4
commit
a7612bfd0d
2 changed files with 7 additions and 3 deletions
|
@ -1 +1 @@
|
|||
set args -nocdaudio -nosound +set _windowed_mouse 0 +set gl_sky_clip 1 +set show_fps 1
|
||||
set args -nocdaudio +set _windowed_mouse 0 +set gl_sky_clip 1 +set show_fps 1
|
||||
|
|
|
@ -322,10 +322,14 @@ SNDDMA_Submit (void)
|
|||
state = snd_pcm_state (pcm_handle);
|
||||
|
||||
switch (state) {
|
||||
case SND_PCM_STATE_XRUN:
|
||||
//snd_pcm_reset (pcm_handle);
|
||||
snd_pcm_prepare (pcm_handle);
|
||||
//break;
|
||||
case SND_PCM_STATE_PREPARED:
|
||||
snd_pcm_mmap_forward (pcm_handle, count);
|
||||
snd_pcm_start (pcm_handle);
|
||||
break;
|
||||
//break;
|
||||
case SND_PCM_STATE_RUNNING:
|
||||
hw_ptr = get_hw_ptr ();
|
||||
missed = hw_ptr - shm->samplepos / shm->channels;
|
||||
|
@ -347,7 +351,7 @@ SNDDMA_Submit (void)
|
|||
}
|
||||
break;
|
||||
default:
|
||||
printf("umm %d\n", state);
|
||||
printf("snd_alsa: nexpected state: %d\n", state);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue