From a7e393b36b57cead61978f332135a509b2ddc82a Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 31 Mar 2016 09:43:53 -0400 Subject: Iterate over core classes C++11 style C++11 range-based for loops can now iterate over simple_list, tagged_list, core_options, device_t::subdevice_list, device_t::interface_list, render_primitive_list and all subclasses of the above, and much code has been refactored to use them. Most core classes that have these lists as members now have methods that return the lists themselves, replacing most of the methods that returned the object at an owned list's head. (A few have been retained due to their use in drivers or OSD.) device_t now manages subdevice and interface lists through subclasses, but has given up the work of adding and removing subdevices to machine_config. memory_manager has its tagged lists exposed, though the old rooted tag lookup methods have been removed (they were privatized already). --- src/emu/sound.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/sound.h') diff --git a/src/emu/sound.h b/src/emu/sound.h index b3584969284..842106ba0af 100644 --- a/src/emu/sound.h +++ b/src/emu/sound.h @@ -199,7 +199,7 @@ public: // getters running_machine &machine() const { return m_machine; } int attenuation() const { return m_attenuation; } - sound_stream *first_stream() const { return m_stream_list.first(); } + const auto &streams() const { return m_stream_list; } attotime last_update() const { return m_last_update; } attoseconds_t update_attoseconds() const { return m_update_attoseconds; } -- cgit v1.2.3-70-g09d2