Home
Download
Musics
Developers
API
Sources
Tools
File Format
Technicals
Main Page
|
Modules
|
Data Structures
|
File List
|
Data Fields
|
Globals
|
Related Pages
ymemul.h File Reference
Detailed Description
YM-2149 emulator header.
Author:
Benjamin Gerard <
ben@sashipa.com
>
Date:
1998/06/24
Id
ymemul.h
,v 2.2 2003/10/11 04:40:25 benjihan Exp
#include "
emu68/type68.h
"
Go to the source code of this file.
Data Structures
struct
ym2149_t
YM-2149 internal data structure.
More...
YM-2149 registers
#define
YM_BASEPERL
0
YM-2149 LSB period base (canal A).
#define
YM_BASEPERH
1
YM-2149 MSB period base (canal A).
#define
YM_BASEVOL
8
YM-2149 volume base register (canal A).
#define
YM_PERL
(N) (YM_BASEPERL+(N)*2)
Canal #N LSB period.
#define
YM_PERH
(N) (YM_BASEPERH+(N)*2)
Canal #N MSB periodr.
#define
YM_VOL
(N) (YM_BASEVOL+(N))
Canal #N volume.
#define
YM_NOISE
6
Noise period.
#define
YM_MIXER
7
Mixer control.
#define
YM_ENVL
11
Volume envelop LSB period.
#define
YM_ENVH
12
Volume envelop MSB period.
#define
YM_ENVTYPE
13
Volume envelop wave form.
#define
YM_ENVSHAPE
13
Volume envelop wave form.
Initialization functions
unsigned int
YM_sampling_rate
(unsigned int f)
Set/get output buffer replay frequency.
int
YM_reset
(void)
Yamaha-2149 hardware reset.
int
YM_init
(void)
Yamaha-2149 first one first initialization.
Emulation functions
unsigned int
YM_mix
(
cycle68_t
cycle2mix)
Execute Yamaha-2149 emulation.
u32
*
YM_get_buffer
(void)
Yamaha get buffer.
void
YM_subcycle
(
cycle68_t
subcycle)
Change YM cycle counter base.
YM-2149 register access functions
void
YM_writereg
(
u8
reg,
u8
v,
cycle68_t
cycle)
Write in YM register.
u8
YM_readreg
(
u8
reg,
cycle68_t
cycle)
Read a YM-2119 register.
int
YM_get_activevoices
(void)
Get voices status.
void
YM_set_activeVoices
(int v)
Set voices status.
Variables
ym2149_t
ym
YM-2149 emulator internal data.
sc68 website ©sashipa Nov 2003
Design by
Benjamin Gerard
, powered by