X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=snd_oss.c;h=ecf18333573b37f90ef8721b06309ffd143f66dc;hb=315301a12b8f1b4a87d45d1d7b9174584db5138d;hp=bde3d50836e48178e600f95591b7824d3e6e169c;hpb=d1a66b1504773e5da10463fd15d524697b0c2ba2;p=xonotic%2Fdarkplaces.git diff --git a/snd_oss.c b/snd_oss.c index bde3d508..ecf18333 100644 --- a/snd_oss.c +++ b/snd_oss.c @@ -46,7 +46,7 @@ Create "snd_renderbuffer" with the proper sound format if the call is successful 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; @@ -222,7 +222,7 @@ static int SndSys_Write (const unsigned char* buffer, unsigned int nb_bytes) factor = snd_renderbuffer->format.width * snd_renderbuffer->format.channels; if (written % factor != 0) - Sys_Error ("SndSys_Write: nb of bytes written (%d) isn't aligned to a frame sample!\n", + Sys_Abort ("SndSys_Write: nb of bytes written (%d) isn't aligned to a frame sample!\n", written); snd_renderbuffer->startframe += written / factor; @@ -312,7 +312,7 @@ SndSys_LockRenderBuffer Get the exclusive lock on "snd_renderbuffer" ==================== */ -qboolean SndSys_LockRenderBuffer (void) +qbool SndSys_LockRenderBuffer (void) { // Nothing to do return true; @@ -330,3 +330,15 @@ void SndSys_UnlockRenderBuffer (void) { // Nothing to do } + +/* +==================== +SndSys_SendKeyEvents + +Send keyboard events originating from the sound system (e.g. MIDI) +==================== +*/ +void SndSys_SendKeyEvents(void) +{ + // not supported +}