X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_snd.h;h=edeeb394889ede4ed0a55096de02b956c2f95bc3;hb=4d4c2774d4e51f7356f7a5ef32ef61a9fd2c299a;hp=1d274eab3b82fea42678e3ad413a27962093f129;hpb=fa252ebd82649e4f3bab4a53228828766713ad6c;p=16.git diff --git a/src/lib/16_snd.h b/src/lib/16_snd.h index 1d274eab..edeeb394 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-2022 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_*/