~ubuntu-branches/ubuntu/raring/mame/raring-proposed

« back to all changes in this revision

Viewing changes to mess/src/emu/machine/mb87078.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
  MB87078 6-bit,4-channel electronic volume controller emulator
4
 
 
5
 
 
6
 
*****************************************************************************/
7
 
 
8
 
#ifndef __MB87078_H__
9
 
#define __MB87078_H__
10
 
 
11
 
#include "devlegcy.h"
12
 
 
13
 
 
14
 
 
15
 
/***************************************************************************
16
 
    TYPE DEFINITIONS
17
 
***************************************************************************/
18
 
 
19
 
typedef void (*mb87078_gain_changed_cb)(running_machine &machine, int channel, int percent /*, float decibels*/);
20
 
 
21
 
typedef struct _mb87078_interface mb87078_interface;
22
 
struct _mb87078_interface
23
 
{
24
 
        mb87078_gain_changed_cb   gain_changed_cb;
25
 
};
26
 
 
27
 
DECLARE_LEGACY_DEVICE(MB87078, mb87078);
28
 
 
29
 
/***************************************************************************
30
 
    DEVICE CONFIGURATION MACROS
31
 
***************************************************************************/
32
 
 
33
 
#define MCFG_MB87078_ADD(_tag, _interface) \
34
 
        MCFG_DEVICE_ADD(_tag, MB87078, 0) \
35
 
        MCFG_DEVICE_CONFIG(_interface)
36
 
 
37
 
 
38
 
/***************************************************************************
39
 
    DEVICE I/O FUNCTIONS
40
 
***************************************************************************/
41
 
 
42
 
void mb87078_data_w(device_t *device, int data, int dsel);
43
 
void mb87078_reset_comp_w(device_t *device, int level);
44
 
 
45
 
 
46
 
/* mb87078_gain_decibel_r will return 'channel' gain on the device.
47
 
   Returned value represents channel gain expressed in decibels,
48
 
   Range from 0 to -32.0 (or -256.0 for -infinity) */
49
 
float mb87078_gain_decibel_r(device_t *device, int channel);
50
 
 
51
 
 
52
 
/* mb87078_gain_percent_r will return 'channel' gain on the device.
53
 
   Returned value represents channel gain expressed in percents of maximum volume.
54
 
   Range from 100 to 0. (100 = 0dB; 50 = -6dB; 0 = -infinity)
55
 
   This function is designed for use with MAME mixer_xxx() functions. */
56
 
int   mb87078_gain_percent_r(device_t *device, int channel);
57
 
 
58
 
 
59
 
#endif  /* __MB87078_H__ */