MSM6258: only one output
This commit is contained in:
parent
cb825ca938
commit
0d2b7427a6
|
@ -31,10 +31,6 @@ const char** DivPlatformMSM6258::getRegisterSheet() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DivPlatformMSM6258::acquire(short** buf, size_t len) {
|
void DivPlatformMSM6258::acquire(short** buf, size_t len) {
|
||||||
short* outs[2]={
|
|
||||||
&msmOut,
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
for (size_t h=0; h<len; h++) {
|
for (size_t h=0; h<len; h++) {
|
||||||
if (--msmClockCount<0) {
|
if (--msmClockCount<0) {
|
||||||
if (--msmDividerCount<=0) {
|
if (--msmDividerCount<=0) {
|
||||||
|
@ -71,7 +67,7 @@ void DivPlatformMSM6258::acquire(short** buf, size_t len) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
msm->sound_stream_update(outs,1);
|
msm->sound_stream_update(&msmOut,1);
|
||||||
msmDividerCount=msmDivider;
|
msmDividerCount=msmDivider;
|
||||||
}
|
}
|
||||||
msmClockCount=msmClock;
|
msmClockCount=msmClock;
|
||||||
|
|
|
@ -135,9 +135,9 @@ void okim6258_device::device_reset()
|
||||||
// sound_stream_update - handle a stream update
|
// sound_stream_update - handle a stream update
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void okim6258_device::sound_stream_update(short** outputs, int len)
|
void okim6258_device::sound_stream_update(short* output, int len)
|
||||||
{
|
{
|
||||||
short* buffer = outputs[0];
|
short* buffer = output;
|
||||||
|
|
||||||
if (m_status & STATUS_PLAYING)
|
if (m_status & STATUS_PLAYING)
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
void device_clock_changed();
|
void device_clock_changed();
|
||||||
|
|
||||||
// sound stream updates
|
// sound stream updates
|
||||||
void sound_stream_update(short** outputs, int len);
|
void sound_stream_update(short* output, int len);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int16_t clock_adpcm(uint8_t nibble);
|
int16_t clock_adpcm(uint8_t nibble);
|
||||||
|
|
Loading…
Reference in New Issue