seems to work now :) probably needs harder testing

This commit is contained in:
Bill Currie 2000-12-13 23:20:38 +00:00
parent 3bbb9ec7d4
commit a7612bfd0d
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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;
}
}