improved the soundblaster code, but still doesn't work on the real
[dos_sbtest] / src / audio.h
index 9b528c2..1fde706 100644 (file)
@@ -1,35 +1,36 @@
-/*
-pcboot - bootable PC demo/game kernel
-Copyright (C) 2018  John Tsiombikas <nuclear@member.fsf.org>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY, without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <https://www.gnu.org/licenses/>.
-*/
-#ifndef AUDIO_H_
-#define AUDIO_H_
-
-typedef int (*audio_callback_func)(void *buffer, int size, void *cls);
-
-void audio_init(void);
-
-void audio_set_callback(audio_callback_func func, void *cls);
-int audio_callback(void *buf, int sz);
-
-void audio_play(int rate, int nchan);
-void audio_pause(void);
-void audio_resume(void);
-void audio_stop(void);
-
-void audio_volume(int vol);
-
-#endif /* AUDIO_H_ */
+/*\r
+pcboot - bootable PC demo/game kernel\r
+Copyright (C) 2018  John Tsiombikas <nuclear@member.fsf.org>\r
+\r
+This program is free software: you can redistribute it and/or modify\r
+it under the terms of the GNU General Public License as published by\r
+the Free Software Foundation, either version 3 of the License, or\r
+(at your option) any later version.\r
+\r
+This program is distributed in the hope that it will be useful,\r
+but WITHOUT ANY WARRANTY, without even the implied warranty of\r
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+GNU General Public License for more details.\r
+\r
+You should have received a copy of the GNU General Public License\r
+along with this program.  If not, see <https://www.gnu.org/licenses/>.\r
+*/\r
+#ifndef AUDIO_H_\r
+#define AUDIO_H_\r
+\r
+typedef int (*audio_callback_func)(void *buffer, int size, void *cls);\r
+\r
+void audio_init(void);\r
+\r
+void audio_set_callback(audio_callback_func func, void *cls);\r
+int audio_callback(void *buf, int sz);\r
+\r
+void audio_play(int rate, int nchan);\r
+void audio_pause(void);\r
+void audio_resume(void);\r
+void audio_stop(void);\r
+int audio_isplaying(void);\r
+\r
+void audio_volume(int vol);\r
+\r
+#endif /* AUDIO_H_ */\r