mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-26 23:55:40 +00:00
92 lines
2 KiB
C
92 lines
2 KiB
C
/**
|
|
** Supermodel
|
|
** A Sega Model 3 Arcade Emulator.
|
|
** Copyright 2011 Bart Trzynadlowski, Nik Henson
|
|
**
|
|
** This file is part of Supermodel.
|
|
**
|
|
** Supermodel 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.
|
|
**
|
|
** Supermodel 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 Supermodel. If not, see <http://www.gnu.org/licenses/>.
|
|
**/
|
|
|
|
/*
|
|
* amp.h
|
|
*
|
|
* Amp library internal header file.
|
|
*/
|
|
|
|
|
|
/* this file is a part of amp software, (C) tomislav uzelac 1996,1997
|
|
*/
|
|
|
|
/* these should not be touched
|
|
*/
|
|
#define SYNCWORD 0xfff
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
/* version
|
|
*/
|
|
#define MAJOR 0
|
|
#define MINOR 7
|
|
#define PATCH 6
|
|
|
|
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
|
#define MAX3(a,b,c) ((a) > (b) ? MAX(a, c) : MAX(b, c))
|
|
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
|
|
|
|
|
/* Debugging flags */
|
|
|
|
struct debugFlags_t {
|
|
int audio,args,buffer,buffer2,misc,misc2;
|
|
};
|
|
|
|
struct debugLookup_t {
|
|
char *name; int *var;
|
|
};
|
|
|
|
extern struct debugFlags_t debugFlags;
|
|
|
|
/* This is only here to keep all the debug stuff together */
|
|
#ifdef AMP_UTIL
|
|
struct debugLookup_t debugLookup[] = {
|
|
{"audio", &debugFlags.audio},
|
|
{"args", &debugFlags.args},
|
|
{"buffer", &debugFlags.buffer},
|
|
{"buffer2", &debugFlags.buffer2},
|
|
{"misc", &debugFlags.misc},
|
|
{"misc2", &debugFlags.misc2},
|
|
{0,0}
|
|
};
|
|
#endif /* AMP_UTIL */
|
|
|
|
extern struct debugLookup_t debugLookup[];
|
|
|
|
|
|
#ifdef DEBUG
|
|
#define DB(type,cmd) if (debugFlags.type) { cmd ; }
|
|
#else
|
|
#define DB(type,cmd)
|
|
#endif
|
|
|
|
#include "config.h"
|
|
#include "proto.h"
|
|
|
|
|
|
extern int AUDIO_BUFFER_SIZE;
|