diff options
| author | 2016-01-16 12:24:11 +0100 | |
|---|---|---|
| committer | 2016-01-16 14:54:42 +0100 | |
| commit | 1f90ceab075c4869298e963bf0a14a0aac2f1caa (patch) | |
| tree | 49984b30e3c6da6a0be068dbfcd02882bdafdc08 /src/emu/speaker.cpp | |
| parent | 34161178c431b018cba0d0286951c69aee80e968 (diff) | |
tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
Diffstat (limited to 'src/emu/speaker.cpp')
| -rw-r--r-- | src/emu/speaker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/speaker.cpp b/src/emu/speaker.cpp index 485a6be73ca..8b31d10064f 100644 --- a/src/emu/speaker.cpp +++ b/src/emu/speaker.cpp @@ -39,7 +39,7 @@ const device_type SPEAKER = &device_creator<speaker_device>; // speaker_device - constructor //------------------------------------------------- -speaker_device::speaker_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +speaker_device::speaker_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) : device_t(mconfig, SPEAKER, "Speaker", tag, owner, clock, "speaker", __FILE__), device_mixer_interface(mconfig, *this), m_x(0.0), @@ -64,7 +64,7 @@ speaker_device::~speaker_device() #ifdef MAME_DEBUG // log the maximum sample values for all speakers if (m_max_sample > 0) - osd_printf_debug("Speaker \"%s\" - max = %d (gain *= %f) - %d%% samples clipped\n", tag(), m_max_sample, 32767.0 / (m_max_sample ? m_max_sample : 1), (int)((double)m_clipped_samples * 100.0 / m_total_samples)); + osd_printf_debug("Speaker \"%s\" - max = %d (gain *= %f) - %d%% samples clipped\n", tag().c_str(), m_max_sample, 32767.0 / (m_max_sample ? m_max_sample : 1), (int)((double)m_clipped_samples * 100.0 / m_total_samples)); #endif } |
