From 7b8913fefa46d67e4be7c662f20a4e26e21000eb Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sun, 27 Sep 2020 20:46:58 -0700 Subject: Complete sound modernization of remaining devices. Legacy callbacks and stream_sample_t removed. (#7297) * a2mcms/coco_ssc/gus/cassette/floppy/8364_paula/laserdsc/s2636/spg2xx_audio/arcadia/channelf/cmi01a/cps3/dai_snd: Update to new stream callbacks * dsbz80/elan_eu3a05/exidy/exidy440/flower/geebee/gomoku/gridlee: Update to new stream callbacks * hyprolyb/lynx/micro3d/phoenix/pleiads/polepos: Update to new sound stream callback * redbaron/segag80r/segausb/seibu/snk6502/socrates/special/svis_snd: Update to new stream callbacks. * tiamc1/turrett/tvc/tx1/vboy/vc4000: Update to new stream callbacks * warpwarp/wiping/wswan/xavix/esq1/istrebiteli/milton6805/pv1000/mega32x/gic: Update to new stream callback * sound: Remove legacy stream support and stream_sample_t * * gomoku/wiping: Remove silly mixer tables in favor of math * micro3d: Remove tiny vectors in favor of fixed arrays * phoenix: Went back to std::unique_ptr array for LFSR * wiping: Fixed the scale factor. --- src/emu/disound.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/emu/disound.cpp') diff --git a/src/emu/disound.cpp b/src/emu/disound.cpp index d2c063ff205..10d16150b76 100644 --- a/src/emu/disound.cpp +++ b/src/emu/disound.cpp @@ -66,15 +66,10 @@ device_sound_interface &device_sound_interface::add_route(u32 output, device_t & //------------------------------------------------- -// stream_alloc_legacy - allocate a stream implicitly +// stream_alloc - allocate a stream implicitly // associated with this device //------------------------------------------------- -sound_stream *device_sound_interface::stream_alloc_legacy(int inputs, int outputs, int sample_rate) -{ - return device().machine().sound().stream_alloc_legacy(*this, inputs, outputs, sample_rate, stream_update_legacy_delegate(&device_sound_interface::sound_stream_update_legacy, this)); -} - sound_stream *device_sound_interface::stream_alloc(int inputs, int outputs, int sample_rate) { return device().machine().sound().stream_alloc(*this, inputs, outputs, sample_rate, stream_update_delegate(&device_sound_interface::sound_stream_update, this), STREAM_DEFAULT_FLAGS); @@ -381,17 +376,6 @@ void device_sound_interface::interface_pre_reset() } -//------------------------------------------------- -// sound_stream_update_legacy - implementation -// that should be overridden by legacy devices -//------------------------------------------------- - -void device_sound_interface::sound_stream_update_legacy(sound_stream &stream, stream_sample_t const * const *inputs, stream_sample_t * const *outputs, int samples) -{ - throw emu_fatalerror("sound_stream_update_legacy called but not overridden by owning class"); -} - - //------------------------------------------------- // sound_stream_update - default implementation // that should be overridden -- cgit v1.2.3-70-g09d2