X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_snd.h;h=f3e03f4c3235c51468d62deb15cbfdf08c55879b;hb=6021fc3f27b895d382fbd30488ead35657e39196;hp=1d274eab3b82fea42678e3ad413a27962093f129;hpb=17ec26395419ff775f29661e50265dfbccfda3b0;p=16.git diff --git a/src/lib/16_snd.h b/src/lib/16_snd.h index 1d274eab..f3e03f4c 100755 --- a/src/lib/16_snd.h +++ b/src/lib/16_snd.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -20,10 +20,18 @@ * */ -#ifndef __16_SND_H_ -#define __16_SND_H_ +#ifndef __16_SD_H_ +#define __16_SD_H_ #include "src/lib/16_head.h" +#include "src/lib/16_tail.h" +#include /* 8254 timer */ +#include +#include +#include +#include + +#define SD_USESCAMMPM #define MIN_REGISTER 0x01 #define MAX_REGISTER 0xF5 @@ -46,7 +54,6 @@ typedef struct{ byte Feedback; /* feedback algorithm and strength */ } FMInstrument; - void opl2out(word reg, word data); void opl3out(word reg, word data); void opl3exp(word data); @@ -56,4 +63,14 @@ void FMKeyOff(int voice); void FMKeyOn(int voice, int freq, int octave); void FMSetVoice(int voiceNum, FMInstrument *ins); +void SD_Initimf(global_game_variables_t *gvar); +void SD_imf_reset_music(global_game_variables_t *gvar); +void SD_StartupTimer(global_game_variables_t *gvar), + SD_ShutdownTimer(); +void SD_imf_free_music(global_game_variables_t *gvar); +int SD_imf_load_music(const char *path, global_game_variables_t *gvar); +void interrupt SD_irq0(void); +void SD_imf_tick(global_game_variables_t *gvar); +void SD_adlib_shut_up(); + #endif /*__16_SND_H_*/