diff options
author | Angelo Salese <angelosa@users.noreply.github.com> | 2019-09-02 07:27:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-02 07:27:21 +0200 |
commit | 11f972772666d2de290d6e65fbae31044129031e (patch) | |
tree | c757f6243af015d0bf2ba92261d65e0b9405e504 /src/devices/sound | |
parent | 5aa10d4f7d99138941c6aaa6db34db42e7c32532 (diff) |
Various improvements over Vrender0 based systems [Angelo Salese] (#5580)
* Made some experimental work with menghong based HW, allowing crzyddz2 to boot and improving menghong colors;
* Internalize video and audio components inside the SoC;
* Wrote a preliminary UART subdevice;
* Made external video clock to be settable by the host driver;
Diffstat (limited to 'src/devices/sound')
-rw-r--r-- | src/devices/sound/vrender0.cpp | 10 | ||||
-rw-r--r-- | src/devices/sound/vrender0.h | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/sound/vrender0.cpp b/src/devices/sound/vrender0.cpp index 2da1aaab29a..df934fcc834 100644 --- a/src/devices/sound/vrender0.cpp +++ b/src/devices/sound/vrender0.cpp @@ -149,10 +149,10 @@ WRITE32_MEMBER(vr0sound_device::vr0_snd_write) } -void vr0sound_device::set_areas(uint32_t *texture, uint32_t *frame) +void vr0sound_device::set_areas(uint16_t *texture, uint16_t *frame) { - m_TexBase=texture; - m_FBBase=frame; + m_TexBase=(int16_t *)texture; + m_FBBase=(int16_t *)frame; } @@ -170,9 +170,9 @@ void vr0sound_device::VR0_RenderAudio(int nsamples, stream_sample_t *l, stream_s if(CT1&0x20) - SAMPLES=(int16_t *)m_TexBase; + SAMPLES = m_TexBase; else - SAMPLES=(int16_t *)m_FBBase; + SAMPLES = m_FBBase; if(CLK) div=((30<<16)|0x8000)/(CLK+1); diff --git a/src/devices/sound/vrender0.h b/src/devices/sound/vrender0.h index ecb629d61a8..a8af6da45c1 100644 --- a/src/devices/sound/vrender0.h +++ b/src/devices/sound/vrender0.h @@ -22,7 +22,7 @@ public: DECLARE_READ32_MEMBER( vr0_snd_read ); DECLARE_WRITE32_MEMBER( vr0_snd_write ); - void set_areas(uint32_t *texture, uint32_t *frame); + void set_areas(uint16_t *texture, uint16_t *frame); protected: // device-level overrides @@ -32,8 +32,8 @@ protected: virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override; private: - uint32_t *m_TexBase; - uint32_t *m_FBBase; + int16_t *m_TexBase; + int16_t *m_FBBase; uint32_t m_SOUNDREGS[0x10000/4]; sound_stream *m_stream; |