X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_snd.h;h=583077de0aefacb0c009b5e1928f8c6af27a0110;hb=34abe02e0e49c2b73912babf54fc63b5cdc56284;hp=afadb348d5ca77374aea392b893c26d56fb5341d;hpb=4d65c704b6a652a66cbff653c192fcc8aca6ef30;p=16.git diff --git a/src/lib/16_snd.h b/src/lib/16_snd.h old mode 100644 new mode 100755 index afadb348..583077de --- a/src/lib/16_snd.h +++ b/src/lib/16_snd.h @@ -1,35 +1,35 @@ -/* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 - * - * This file is part of Project 16. - * - * Project 16 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. - * - * Project 16 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 , or - * write to the Free Software Foundation, Inc., 51 Franklin Street, - * Fifth Floor, Boston, MA 02110-1301 USA. - * - */ - -#ifndef __16_SND_H_ -#define __16_SND_H_ - -#include "src/lib/16_head.h" - +/* Project 16 Source Code~ + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 + * + * This file is part of Project 16. + * + * Project 16 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. + * + * Project 16 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 , or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#ifndef __16_SND_H_ +#define __16_SND_H_ + +#include "src/lib/16_head.h" + #define MIN_REGISTER 0x01 #define MAX_REGISTER 0xF5 #define ADLIB_FM_ADDRESS 0x388 /* adlib address/status register */ -#define ADLIB_FM_DATA 0x389 /* adlib data register */ - +#define ADLIB_FM_DATA 0x389 /* adlib data register */ + /* * FM Instrument definition for .SBI files - SoundBlaster instrument * - these are the important parts - we will skip the header, but since @@ -45,16 +45,15 @@ typedef struct{ byte WaveSelect[2]; /* output waveform distortion */ byte Feedback; /* feedback algorithm and strength */ } FMInstrument; - - -void opl2out(word reg, word data); -void opl3out(word reg, word data); -void opl3exp(word data); - -//Unknown licence! -void FMReset(void/*int percusiveMode*/); -void FMKeyOff(int voice); -void FMKeyOn(int voice, int freq, int octave); -void FMSetVoice(int voiceNum, FMInstrument *ins); - -#endif /*__16_SND_H_*/ + + +void opl2out(word reg, word data); +void opl3out(word reg, word data); +void opl3exp(word data); + +void FMReset(void/*int percusiveMode*/); +void FMKeyOff(int voice); +void FMKeyOn(int voice, int freq, int octave); +void FMSetVoice(int voiceNum, FMInstrument *ins); + +#endif /*__16_SND_H_*/