diff options
Diffstat (limited to 'src/devices/sound/samples.cpp')
-rw-r--r-- | src/devices/sound/samples.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/devices/sound/samples.cpp b/src/devices/sound/samples.cpp index 7663d921475..afd72f5391a 100644 --- a/src/devices/sound/samples.cpp +++ b/src/devices/sound/samples.cpp @@ -2,23 +2,21 @@ // copyright-holders:Aaron Giles /*************************************************************************** - samples.c - Sound device for sample playback. **************************************************************************** - Playback of pre-recorded samples. Used for high-level simulation of - discrete sound circuits where proper low-level simulation isn't - available. Also used for tape loops and similar. - - Current limitations - - Only supports single channel samples! +Playback of pre-recorded samples. Used for high-level simulation of discrete +sound circuits where proper low-level simulation isn't available. Also used +for tape loops and similar. - Considerations - - Maybe this should be part of the presentation layer - (artwork etc.) with samples specified in .lay files instead of - in drivers? +TODO: +- Only supports single channel samples! +- When mame.ini samplerate is close to the loaded sample(s) samplerate, + (eg. 48000, with 44100Hz samples), things can sound quite bad. This is + more an issue in sound.cpp resampler, not this device. +- Maybe this should be part of the presentation layer (artwork etc.) + with samples specified in .lay files instead of in drivers? ***************************************************************************/ @@ -26,6 +24,7 @@ #include "samples.h" #include "emuopts.h" +#include "fileio.h" #include "flac.h" @@ -55,9 +54,9 @@ 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 *tag, device_t *owner, uint32_t clock) : device_t(mconfig, type, tag, owner, clock) , device_sound_interface(mconfig, *this) + , m_samples_start_cb(*this) , m_channels(0) , m_names(nullptr) - , m_samples_start_cb(*this) { } |