From 9225478fdd1dcfe90e8e4105e35b92be4a7056bf Mon Sep 17 00:00:00 2001 From: Allofich <19624336+Allofich@users.noreply.github.com> Date: Wed, 4 Sep 2024 01:48:09 +0900 Subject: [PATCH] SVN r4483 Fix compilation in Visual Studio 2008. --- CHANGELOG | 1 + src/hardware/mame/saa1099.cpp | 1 + src/hardware/mame/saa1099.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index ca5d4e5b80..551640072b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -93,6 +93,7 @@ NEXT - properties/help: sorted alphabetically, mouse wheel scrollable - remove few rendundant labels, adjust names of some others - retain 'show advanced options' state throughout session + - SVN r4483: Fix compilation in Visual Studio 2008. (Allofich) 2024.07.01 - Correct Hercules InColor memory emulation. Read and write planar diff --git a/src/hardware/mame/saa1099.cpp b/src/hardware/mame/saa1099.cpp index 33a55a9d04..36f409ed94 100644 --- a/src/hardware/mame/saa1099.cpp +++ b/src/hardware/mame/saa1099.cpp @@ -155,6 +155,7 @@ saa1099_device::saa1099_device(const machine_config &mconfig, const char *tag, d , m_sync_state(0) , m_selected_reg(0) , m_sample_rate(0.0) + , sample_rate(clock / 256) { FILL_ARRAY( m_noise_params ); FILL_ARRAY( m_env_enable ); diff --git a/src/hardware/mame/saa1099.h b/src/hardware/mame/saa1099.h index a44ff21473..dca558f438 100644 --- a/src/hardware/mame/saa1099.h +++ b/src/hardware/mame/saa1099.h @@ -53,7 +53,7 @@ class saa1099_device : public device_t, DECLARE_WRITE8_MEMBER( write ); - uint32_t sample_rate = clock() / 256; + uint32_t sample_rate; //protected: // device-level overrides