Previous 199869 Revisions Next

r19927 Saturday 29th December, 2012 at 17:48:04 UTC by Andrew Gardner
Reverted last change (nw).
Will continue to stick to keeping my source changes to a minimum.
[src/emu/sound]gaelco.c gaelco.h segapcm.c segapcm.h

trunk/src/emu/sound/segapcm.c
r19926r19927
55#include "emu.h"
66#include "segapcm.h"
77
8#define   BANK_256    (11)
9#define   BANK_512    (12)
10#define   BANK_12M    (13)
11#define   BANK_MASK7    (0x70<<16)
12#define   BANK_MASKF    (0xf0<<16)
13#define   BANK_MASKF8   (0xf8<<16)
148
15
169// device type definition
1710const device_type SEGAPCM = &device_creator<segapcm_device>;
1811
trunk/src/emu/sound/segapcm.h
r19926r19927
77#ifndef __SEGAPCM_H__
88#define __SEGAPCM_H__
99
10#define   BANK_256    (11)
11#define   BANK_512    (12)
12#define   BANK_12M    (13)
13#define   BANK_MASK7    (0x70<<16)
14#define   BANK_MASKF    (0xf0<<16)
15#define   BANK_MASKF8   (0xf8<<16)
1016
17
1118//**************************************************************************
1219//  INTERFACE CONFIGURATION MACROS
1320//**************************************************************************
trunk/src/emu/sound/gaelco.c
r19926r19927
249249      m_snd_data = *region();
250250
251251   /* init volume table */
252   for (vol = 0; vol < VOLUME_LEVELS; vol++){
252   for (vol = 0; vol < GAELCO_VOLUME_LEVELS; vol++){
253253      for (j = -128; j <= 127; j++){
254         m_volume_table[vol][(j ^ 0x80) & 0xff] = (vol*j*256)/(VOLUME_LEVELS - 1);
254         m_volume_table[vol][(j ^ 0x80) & 0xff] = (vol*j*256)/(GAELCO_VOLUME_LEVELS - 1);
255255      }
256256   }
257257
trunk/src/emu/sound/gaelco.h
r19926r19927
33#ifndef __GALELCO_H__
44#define __GALELCO_H__
55
6const int GAELCO_NUM_CHANNELS = 0x07;
7const int VOLUME_LEVELS = 0x10;
6#define GAELCO_NUM_CHANNELS    0x07
7#define GAELCO_VOLUME_LEVELS   0x10
88
99
1010//**************************************************************************
r19926r19927
7878   UINT16 m_sndregs[0x38];
7979
8080   // Table for converting from 8 to 16 bits with volume control
81   INT16 m_volume_table[VOLUME_LEVELS][256];
81   INT16 m_volume_table[GAELCO_VOLUME_LEVELS][256];
8282};
8383
8484extern const device_type GAELCO_GAE1;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team