X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dos_sbtest;a=blobdiff_plain;f=src%2Faudio.h;fp=src%2Faudio.h;h=1fde7067999addb79e2b2564b7e0f47a6243232a;hp=9b528c21a03a75ce9224a6194dde7d2443fc7a19;hb=07c19444f4f2a55abf97d181ab62aeaa51033c62;hpb=01a545fde6dc446fe626382f8bba50b9b7c1a35b diff --git a/src/audio.h b/src/audio.h index 9b528c2..1fde706 100644 --- a/src/audio.h +++ b/src/audio.h @@ -1,35 +1,36 @@ -/* -pcboot - bootable PC demo/game kernel -Copyright (C) 2018 John Tsiombikas - -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 . -*/ -#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_ */ +/* +pcboot - bootable PC demo/game kernel +Copyright (C) 2018 John Tsiombikas + +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 . +*/ +#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); +int audio_isplaying(void); + +void audio_volume(int vol); + +#endif /* AUDIO_H_ */