X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dos_sbtest;a=blobdiff_plain;f=src%2Fau_sb.h;fp=src%2Fau_sb.h;h=0981ba651e74d4afc23a98a7c59280ea9af8b63c;hp=d437ff7bbb7e6abc400f3ac1938658305a833307;hb=07c19444f4f2a55abf97d181ab62aeaa51033c62;hpb=01a545fde6dc446fe626382f8bba50b9b7c1a35b diff --git a/src/au_sb.h b/src/au_sb.h index d437ff7..0981ba6 100644 --- a/src/au_sb.h +++ b/src/au_sb.h @@ -1,42 +1,26 @@ -/* -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 AU_SB_H_ -#define AU_SB_H_ - -/* returns true (nonzero) if a sound blaster DSP is detected in the ISA bus - * and sets the internal base_port so that subsequent calls can find it - */ -int sb_detect(void); - -/* returns 0 for success, non-zero if the DSP isn't responding at the currently - * selected base port - */ -int sb_reset_dsp(void); - -void *sb_buffer(int *size); - -void sb_set_output_rate(int rate); - -void sb_start(int rate, int nchan); -void sb_pause(void); -void sb_continue(void); -void sb_stop(void); - -void sb_volume(int vol); - -#endif /* AU_SB_H_ */ +#ifndef AU_SB_H_ +#define AU_SB_H_ + +/* returns true (nonzero) if a sound blaster DSP is detected in the ISA bus + * and sets the internal base_port so that subsequent calls can find it + */ +int sb_detect(void); + +/* returns 0 for success, non-zero if the DSP isn't responding at the currently + * selected base port + */ +int sb_reset_dsp(void); + +void *sb_buffer(int *size); + +void sb_set_output_rate(int rate); + +void sb_start(int rate, int nchan); +void sb_pause(void); +void sb_continue(void); +void sb_stop(void); +int sb_isplaying(void); + +void sb_volume(int vol); + +#endif /* AU_SB_H_ */