mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-26 12:34:17 +01:00
60 lines
1.8 KiB
C++
60 lines
1.8 KiB
C++
// -*- C++ -*-
|
|
// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
|
|
// Copyright (C) 1999-2003 Forgotten
|
|
// Copyright (C) 2004 Forgotten and the VBA development team
|
|
|
|
// 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 2, 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, write to the Free Software Foundation,
|
|
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
#define NR10 0xff10
|
|
#define NR11 0xff11
|
|
#define NR12 0xff12
|
|
#define NR13 0xff13
|
|
#define NR14 0xff14
|
|
#define NR21 0xff16
|
|
#define NR22 0xff17
|
|
#define NR23 0xff18
|
|
#define NR24 0xff19
|
|
#define NR30 0xff1a
|
|
#define NR31 0xff1b
|
|
#define NR32 0xff1c
|
|
#define NR33 0xff1d
|
|
#define NR34 0xff1e
|
|
#define NR41 0xff20
|
|
#define NR42 0xff21
|
|
#define NR43 0xff22
|
|
#define NR44 0xff23
|
|
#define NR50 0xff24
|
|
#define NR51 0xff25
|
|
#define NR52 0xff26
|
|
|
|
#define SOUND_EVENT(address,value) \
|
|
gbSoundEvent(address,value)
|
|
|
|
extern void gbSoundTick();
|
|
extern void gbSoundPause();
|
|
extern void gbSoundResume();
|
|
extern void gbSoundEnable(int);
|
|
extern void gbSoundDisable(int);
|
|
extern int gbSoundGetEnable();
|
|
extern void gbSoundReset();
|
|
extern void gbSoundSaveGame(gzFile);
|
|
extern void gbSoundReadGame(int,gzFile);
|
|
extern void gbSoundEvent(register u16, register int);
|
|
extern void gbSoundSetQuality(int);
|
|
|
|
extern int soundTicks;
|
|
extern int soundQuality;
|
|
extern int SOUND_CLOCK_TICKS;
|