mirror of
https://github.com/holub/mame
synced 2025-06-01 02:21:48 +03:00
ASC: fix AaronDamage(tm) (no whatsnew)
So if I read this right, you updated the ASC, then decided to enforce sound_stream_update() as a pure virtual function, and didn't update the ASC again? :)
This commit is contained in:
parent
4bd9674c5d
commit
67c925fc04
@ -129,7 +129,7 @@ asc_device::asc_device(running_machine &_machine, const asc_device_config &confi
|
||||
void asc_device::device_start()
|
||||
{
|
||||
// create the stream
|
||||
m_stream = m_machine.sound().stream_alloc(*this, 0, 2, 22257, this, static_stream_generate);
|
||||
m_stream = m_machine.sound().stream_alloc(*this, 0, 2, 22257, this);
|
||||
|
||||
memset(m_regs, 0, sizeof(m_regs));
|
||||
|
||||
@ -169,16 +169,11 @@ void asc_device::device_reset()
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// stream_generate - handle update requests for
|
||||
// sound_stream_update - handle update requests for
|
||||
// our sound stream
|
||||
//-------------------------------------------------
|
||||
|
||||
STREAM_UPDATE( asc_device::static_stream_generate )
|
||||
{
|
||||
reinterpret_cast<asc_device *>(param)->stream_generate(inputs, outputs, samples);
|
||||
}
|
||||
|
||||
void asc_device::stream_generate(stream_sample_t **inputs, stream_sample_t **outputs, int samples)
|
||||
void asc_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples)
|
||||
{
|
||||
stream_sample_t *outL, *outR;
|
||||
int i, ch;
|
||||
|
@ -125,6 +125,8 @@ protected:
|
||||
virtual void device_start();
|
||||
virtual void device_reset();
|
||||
|
||||
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
|
||||
|
||||
// internal callbacks
|
||||
static STREAM_UPDATE( static_stream_generate );
|
||||
virtual void stream_generate(stream_sample_t **inputs, stream_sample_t **outputs, int samples);
|
||||
|
Loading…
Reference in New Issue
Block a user