#ifdef SUNOS
info.play.encoding = AUDIO_ENCODING_LINEAR;
#else
-# if BYTE_ORDER == BIG_ENDIAN
+ if (mem_bigendian)
info.play.encoding = AUDIO_ENCODING_SLINEAR_BE;
-# else
+ else
info.play.encoding = AUDIO_ENCODING_SLINEAR_LE;
-# endif
#endif
- if (ioctl (audio_fd, AUDIO_SETINFO, &info) == 0)
- break;
+ if (ioctl (audio_fd, AUDIO_SETINFO, &info) != 0)
+ {
+ Con_Printf("Can't set up the sound device (%s)\n", snddev);
+ return false;
+ }
// TODO: check the parameters with AUDIO_GETINFO
// TODO: check AUDIO_ENCODINGFLAG_EMULATED with AUDIO_GETENC
if (ioctl (audio_fd, AUDIO_GETINFO, &info) < 0)
{
Con_Print("Error: can't get audio info\n");
- SNDDMA_Shutdown ();
+ SndSys_Shutdown ();
return 0;
}
{
// Nothing to do
}
+
+/*
+====================
+SndSys_SendKeyEvents
+
+Send keyboard events originating from the sound system (e.g. MIDI)
+====================
+*/
+void SndSys_SendKeyEvents(void)
+{
+ // not supported
+}