X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dos_sbtest;a=blobdiff_plain;f=src%2Faudio.h;h=c5221342d5bce6d261456b7fa2249bbc713bcf49;hp=9b528c21a03a75ce9224a6194dde7d2443fc7a19;hb=b4ee0075a2a231ef06e333b77510187aeb22f8fa;hpb=6d4de53a835a8258ba05c83a2af38f27a0e92d21 diff --git a/src/audio.h b/src/audio.h index 9b528c2..c522134 100644 --- a/src/audio.h +++ b/src/audio.h @@ -1,35 +1,19 @@ -/* -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_ */ +#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 bits, 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_ */