Skip to content
Snippets Groups Projects
Commit 7c6b23c8 authored by deuce's avatar deuce
Browse files

Don't attempt to use soundcard support if machine/soundcard.h fails to

be included (or is missing a basic #define)
parent cddaa9cc
No related branches found
No related tags found
No related merge requests found
......@@ -207,6 +207,7 @@ void DLLCALL unix_beep(int freq, int dur)
void DLLCALL SineBeep(double freq, DWORD duration)
{
#ifdef AFMT_U8
int dsp;
int format=AFMT_U8;
int channels=1;
......@@ -251,5 +252,8 @@ void DLLCALL SineBeep(double freq, DWORD duration)
wr+=i;
}
close(dsp);
#else
unix_beep((int)(freq+.5),duration);
#endif
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment