~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/emu/audio/generic.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 
3
 
    generic.h
4
 
 
5
 
    Generic simple sound functions.
6
 
 
7
 
    Copyright Nicola Salmoria and the MAME Team.
8
 
    Visit http://mamedev.org for licensing and usage restrictions.
9
 
 
10
 
***************************************************************************/
11
 
 
12
 
#pragma once
13
 
 
14
 
#ifndef __SOUND_GENERIC_H__
15
 
#define __SOUND_GENERIC_H__
16
 
 
17
 
 
18
 
 
19
 
/***************************************************************************
20
 
 
21
 
    Function prototypes
22
 
 
23
 
***************************************************************************/
24
 
 
25
 
int generic_sound_init(running_machine &machine);
26
 
 
27
 
/* latch readers */
28
 
READ8_HANDLER( soundlatch_r );
29
 
READ8_HANDLER( soundlatch2_r );
30
 
READ8_HANDLER( soundlatch3_r );
31
 
READ8_HANDLER( soundlatch4_r );
32
 
READ16_HANDLER( soundlatch_word_r );
33
 
READ16_HANDLER( soundlatch2_word_r );
34
 
READ16_HANDLER( soundlatch3_word_r );
35
 
READ16_HANDLER( soundlatch4_word_r );
36
 
 
37
 
/* latch writers */
38
 
WRITE8_HANDLER( soundlatch_w );
39
 
WRITE8_HANDLER( soundlatch2_w );
40
 
WRITE8_HANDLER( soundlatch3_w );
41
 
WRITE8_HANDLER( soundlatch4_w );
42
 
WRITE16_HANDLER( soundlatch_word_w );
43
 
WRITE16_HANDLER( soundlatch2_word_w );
44
 
WRITE16_HANDLER( soundlatch3_word_w );
45
 
WRITE16_HANDLER( soundlatch4_word_w );
46
 
 
47
 
/* latch clearers */
48
 
WRITE8_HANDLER( soundlatch_clear_w );
49
 
WRITE8_HANDLER( soundlatch2_clear_w );
50
 
WRITE8_HANDLER( soundlatch3_clear_w );
51
 
WRITE8_HANDLER( soundlatch4_clear_w );
52
 
 
53
 
/* If you're going to use soundlatchX_clear_w, and the cleared value is
54
 
   something other than 0x00, use this function from machine_init. Note
55
 
   that this one call effects all 4 latches */
56
 
void soundlatch_setclearedvalue(running_machine &machine, int value);
57
 
 
58
 
 
59
 
#endif  /* __SOUND_GENERIC_H__ */