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

« back to all changes in this revision

Viewing changes to src/mame/audio/pulsar.c

  • 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:
28
28
#define OUT_PORT_2_MOVMAZE              0x10
29
29
 
30
30
 
31
 
#define PLAY(samp,id,loop)           sample_start( samp, id, id, loop )
32
 
#define STOP(samp,id)                sample_stop( samp, id )
 
31
#define PLAY(samp,id,loop)           samp->start( id, id, loop )
 
32
#define STOP(samp,id)                samp->stop( id )
33
33
 
34
34
 
35
35
/* sample file names */
60
60
 
61
61
 
62
62
MACHINE_CONFIG_FRAGMENT( pulsar_audio )
63
 
        MCFG_SOUND_ADD("samples", SAMPLES, 0)
64
 
        MCFG_SOUND_CONFIG(pulsar_samples_interface)
 
63
        MCFG_SAMPLES_ADD("samples", pulsar_samples_interface)
65
64
        MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
66
65
MACHINE_CONFIG_END
67
66
 
88
87
 
89
88
WRITE8_HANDLER( pulsar_audio_1_w )
90
89
{
91
 
        device_t *samples = space->machine().device("samples");
 
90
        samples_device *samples = space->machine().device<samples_device>("samples");
92
91
        int bitsChanged;
93
92
        //int bitsGoneHigh;
94
93
        int bitsGoneLow;
139
138
 
140
139
WRITE8_HANDLER( pulsar_audio_2_w )
141
140
{
142
 
        device_t *samples = space->machine().device("samples");
 
141
        samples_device *samples = space->machine().device<samples_device>("samples");
143
142
        static int port2State = 0;
144
143
        int bitsChanged;
145
144
        int bitsGoneHigh;
159
158
 
160
159
        if ( bitsGoneLow & OUT_PORT_2_GATE )
161
160
        {
162
 
                sample_start( samples, SND_CLANG, SND_GATE, 0 );
 
161
                samples->start(SND_CLANG, SND_GATE);
163
162
        }
164
163
        if ( bitsGoneHigh & OUT_PORT_2_GATE )
165
164
        {