diff options
Diffstat (limited to 'src/devices/sound/samples.cpp')
-rw-r--r-- | src/devices/sound/samples.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/sound/samples.cpp b/src/devices/sound/samples.cpp index 7a756dbb0fe..e7100d1f054 100644 --- a/src/devices/sound/samples.cpp +++ b/src/devices/sound/samples.cpp @@ -45,7 +45,7 @@ const device_type SAMPLES = &device_creator<samples_device>; // samples_device - constructors //------------------------------------------------- -samples_device::samples_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +samples_device::samples_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock) : device_t(mconfig, SAMPLES, "Samples", tag, owner, clock, "samples", __FILE__), device_sound_interface(mconfig, *this), m_channels(0), @@ -53,7 +53,7 @@ samples_device::samples_device(const machine_config &mconfig, const char *tag, d { } -samples_device::samples_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) +samples_device::samples_device(const machine_config &mconfig, device_type type, const char *name, std::string tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_sound_interface(mconfig, *this), m_channels(0), @@ -633,7 +633,7 @@ bool samples_device::load_samples() read_sample(file, m_sample[index]); else if (filerr == FILERR_NOT_FOUND) { - logerror("%s: Sample '%s' NOT FOUND\n", tag(), samplename); + logerror("%s: Sample '%s' NOT FOUND\n", tag().c_str(), samplename); ok = false; } } |