fixed DMA bug
[dos_sbtest] / src / audio.h
index 9b528c2..c522134 100644 (file)
@@ -1,35 +1,19 @@
-/*
-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_ */
+#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 bits, 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