-////////////////////////////////////////////////////////////////////////////////
-// Audio
-////////////////////////////////////////////////////////////////////////////////
+//
+// Audio handler
+//
+// by cal2
+// GCC/SDL port by Niels Wagenaar (Linux/WIN32) and Caz (BeOS)
+// Cleanups by James L. Hammons
+//
+// We really need to convert this to SDL... DirectSound won't cut it here!
+//
-#include "include/jaguar.h"
-#include "include/dsnd.h"
+#include "jaguar.h"
+#include "dsnd.h"
int ym2413_enable;
-int FREQUENCE=44100;
+int FREQUENCE = 44100;
void dsound_reset(void);
int chipBufferLength; //Number of bytes to hold SOUND_BUFFER seconds.
-int lastChipWrite =0;
-int chipWrite =UNDEFINED; //Write Cursor
+int lastChipWrite = 0;
+int chipWrite = UNDEFINED; //Write Cursor
-INT16* buf1;
+INT16 * buf1;
-////////////////////////////////////////////////////////////////////////////////
-//
-////////////////////////////////////////////////////////////////////////////////
void ws_write_state(int fp)
{
}
-
void ws_read_state(int fp)
{
}
-
-
-
-////////////////////////////////////////////////////////////////////////////////
-//
-////////////////////////////////////////////////////////////////////////////////
void ws_audio_init(void)
{
#ifdef _EMULATE_SOUND
// ws_audio_reset();
#endif
}
-////////////////////////////////////////////////////////////////////////////////
-//
-////////////////////////////////////////////////////////////////////////////////
+
void ws_audio_reset(void)
{
#ifdef _EMULATE_SOUND
#endif
}
-
-////////////////////////////////////////////////////////////////////////////////
-//
-////////////////////////////////////////////////////////////////////////////////
void ws_audio_done(void)
{
#ifdef _EMULATE_SOUND
#endif
}
-
-////////////////////////////////////////////////////////////////////////////////
-//
-////////////////////////////////////////////////////////////////////////////////
void ws_audio_clear_channel(int Channel)
{
#ifdef _EMULATE_SOUND
#endif
}
-
-
-////////////////////////////////////////////////////////////////////////////////
+//
// start playing a channel
-////////////////////////////////////////////////////////////////////////////////
+//
+
int ws_audio_play_channel(int Channel)
{
#ifdef _EMULATE_SOUND
return 0;
}
-
-////////////////////////////////////////////////////////////////////////////////
+//
// stop playing a channel
-////////////////////////////////////////////////////////////////////////////////
+//
+
int ws_audio_stop_channel(int Channel)
{
#ifdef _EMULATE_SOUND
return(0);
}
-
-
void dsound_reset(void)
{
#ifdef _EMULATE_SOUND
#endif
}
-
-
void system_sound_shutdown(void)
{
#ifdef _EMULATE_SOUND
#endif
}
-
void system_sound_update(void)
{
#ifdef _EMULATE_SOUND