comparison src/sound.c @ 3710:4bcad369dfd4

[xemacs-hg @ 2006-11-29 19:10:01 by aidan] Avoid a crash in Cygwin when clicking File -> Print under X11.
author aidan
date Wed, 29 Nov 2006 19:10:03 +0000
parents 3151d67d15d2
children af0d2950b72a
comparison
equal deleted inserted replaced
3709:792485be7974 3710:4bcad369dfd4
588 #ifdef HAVE_NATIVE_SOUND 588 #ifdef HAVE_NATIVE_SOUND
589 589
590 static void 590 static void
591 init_native_sound (struct device *d) 591 init_native_sound (struct device *d)
592 { 592 {
593 if (DEVICE_TTY_P (d) || DEVICE_STREAM_P (d) || DEVICE_MSWINDOWS_P(d)) 593 if (!(DEVICE_X_P(d) || DEVICE_GTK_P(dev)))
594 DEVICE_ON_CONSOLE_P (d) = 1; 594 DEVICE_ON_CONSOLE_P (d) = 1;
595 #ifdef HAVE_X_WINDOWS 595 #ifdef HAVE_X_WINDOWS
596 else 596 else
597 { 597 {
598 /* When running on a machine with native sound support, we cannot use 598 /* When running on a machine with native sound support, we cannot use