1
1
// license:BSD-3-Clause
2
- // copyright-holders:Nicola Salmoria,Hiromitsu Shioya
2
+ // copyright-holders:Nicola Salmoria, Hiromitsu Shioya
3
3
/* ********************************************************/
4
4
/* Konami PCM controller */
5
5
/* ********************************************************/
6
6
7
- /*
8
- Changelog, Hiromitsu Shioya 02/05/2002
9
- fixed start address decode timing. (sample loop bug.)
10
-
11
- Changelog, Mish, August 1999:
12
- Removed interface support for different memory regions per channel.
13
- Removed interface support for differing channel volume.
14
-
15
- Added bankswitching.
16
- Added support for multiple chips.
17
-
18
- (NB: Should different memory regions per channel be needed, the bankswitching function can set this up).
19
-
20
- Changelog, Nicola, August 1999:
21
- Added Support for the k007232_VOL() macro.
22
- Added external port callback, and functions to set the volume of the channels
23
- */
24
-
25
-
26
7
#include " emu.h"
27
8
#include " k007232.h"
28
9
#include " wavwrite.h"
@@ -69,7 +50,7 @@ void k007232_device::device_start()
69
50
}
70
51
space (0 ).cache (m_cache);
71
52
72
- /* Set up the chips */
53
+ // set up the chips
73
54
for (int i = 0 ; i < 2 ; i++)
74
55
{
75
56
m_channel[i].addr = 0 ;
@@ -79,10 +60,10 @@ void k007232_device::device_start()
79
60
m_channel[i].play = 0 ;
80
61
m_channel[i].bank = 0 ;
81
62
}
82
- m_channel[0 ].vol [0 ] = 255 ; /* channel A output to output A */
63
+ m_channel[0 ].vol [0 ] = 255 ; // channel A output to output A
83
64
m_channel[0 ].vol [1 ] = 0 ;
84
65
m_channel[1 ].vol [0 ] = 0 ;
85
- m_channel[1 ].vol [1 ] = 255 ; /* channel B output to output B */
66
+ m_channel[1 ].vol [1 ] = 255 ; // channel B output to output B
86
67
87
68
for (auto & elem : m_wreg)
88
69
elem = 0 ;
@@ -242,7 +223,7 @@ void k007232_device::sound_stream_update(sound_stream &stream)
242
223
channel_t &channel = m_channel[i];
243
224
if (channel.play )
244
225
{
245
- /* *** PCM setup *** */
226
+ // PCM setup
246
227
int const vol_a = channel.vol [0 ] * 2 ;
247
228
int const vol_b = channel.vol [1 ] * 2 ;
248
229
@@ -254,12 +235,12 @@ void k007232_device::sound_stream_update(sound_stream &stream)
254
235
// end of sample
255
236
if (BIT (m_wreg[13 ], i))
256
237
{
257
- /* loop to the beginning */
238
+ // loop to the beginning
258
239
addr = channel.start ;
259
240
}
260
241
else
261
242
{
262
- /* stop sample */
243
+ // stop sample
263
244
channel.play = false ;
264
245
break ;
265
246
}
0 commit comments