mirror of https://github.com/snes9xgit/snes9x.git
Add error message if sound device cannot be opened.
This commit is contained in:
parent
3351c3b820
commit
b02099f52b
|
@ -1442,7 +1442,10 @@ bool8 S9xOpenSoundDevice (void)
|
|||
|
||||
so.sound_fd = open(sound_device, O_WRONLY | O_NONBLOCK);
|
||||
if (so.sound_fd == -1)
|
||||
{
|
||||
fprintf(stderr, "ERROR: Failed to open sound device %s for writing.\n\t(Try loading snd-pcm-oss module?)\n", sound_device);
|
||||
return (FALSE);
|
||||
}
|
||||
|
||||
J = log2(unixSettings.SoundFragmentSize) | (3 << 16);
|
||||
if (ioctl(so.sound_fd, SNDCTL_DSP_SETFRAGMENT, &J) == -1)
|
||||
|
|
Loading…
Reference in New Issue