// OSS module, used by Linux and FreeBSD
+#include "quakedef.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/soundcard.h>
#include <unistd.h>
-#include "quakedef.h"
#include "snd_main.h"
May return a suggested format if the requested format isn't available
====================
*/
-qboolean SndSys_Init (const snd_format_t* requested, snd_format_t* suggested)
+qbool SndSys_Init (const snd_format_t* requested, snd_format_t* suggested)
{
int flags, ioctl_param, prev_value;
unsigned int fragmentsize;
if (suggested != NULL)
{
- memcpy(suggested, requested, sizeof(suggested));
+ memcpy(suggested, requested, sizeof(*suggested));
if (requested->width < 1)
suggested->width = 1;
{
if (ioctl_param != prev_value && suggested != NULL)
{
- memcpy(suggested, requested, sizeof(suggested));
+ memcpy(suggested, requested, sizeof(*suggested));
if (ioctl_param == AFMT_S16_NE)
suggested->width = 2;
{
if (ioctl_param != requested->channels && suggested != NULL)
{
- memcpy(suggested, requested, sizeof(suggested));
+ memcpy(suggested, requested, sizeof(*suggested));
suggested->channels = ioctl_param;
}
{
if ((unsigned int)ioctl_param != requested->speed && suggested != NULL)
{
- memcpy(suggested, requested, sizeof(suggested));
+ memcpy(suggested, requested, sizeof(*suggested));
suggested->speed = ioctl_param;
}
Get the exclusive lock on "snd_renderbuffer"
====================
*/
-qboolean SndSys_LockRenderBuffer (void)
+qbool SndSys_LockRenderBuffer (void)
{
// Nothing to do
return true;
{
// Nothing to do
}
+
+/*
+====================
+SndSys_SendKeyEvents
+
+Send keyboard events originating from the sound system (e.g. MIDI)
+====================
+*/
+void SndSys_SendKeyEvents(void)
+{
+ // not supported
+}