summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-06-17 17:46:18 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-06-24 09:08:33 -0400
commitb3afc83bde187412269b825d052116727aa3c1bd (patch)
tree98809c6cc5d861056842a4acfac24b11a14ecc8f /src/devices/sound
parent297b99c0faa2e70ed3fb5cc4c9ed60e40cd9af5a (diff)
Allow passing std::unique_ptr<TYPE> directly to save_pointer and remove now-superfluous .get() in many drivers/devices (nw)
Diffstat (limited to 'src/devices/sound')
-rw-r--r--src/devices/sound/cdda.cpp2
-rw-r--r--src/devices/sound/dmadac.cpp2
-rw-r--r--src/devices/sound/es5506.cpp4
-rw-r--r--src/devices/sound/k054539.cpp2
-rw-r--r--src/devices/sound/segapcm.cpp2
-rw-r--r--src/devices/sound/sp0256.cpp2
-rw-r--r--src/devices/sound/zsg2.cpp4
7 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/sound/cdda.cpp b/src/devices/sound/cdda.cpp
index a0902789386..1b2d766493e 100644
--- a/src/devices/sound/cdda.cpp
+++ b/src/devices/sound/cdda.cpp
@@ -47,7 +47,7 @@ void cdda_device::device_start()
save_item( NAME(m_audio_ended_normally) );
save_item( NAME(m_audio_lba) );
save_item( NAME(m_audio_length) );
- save_pointer( NAME(m_audio_cache.get()), CD_MAX_SECTOR_DATA * MAX_SECTORS );
+ save_pointer( NAME(m_audio_cache), CD_MAX_SECTOR_DATA * MAX_SECTORS );
save_item( NAME(m_audio_samples) );
save_item( NAME(m_audio_bptr) );
}
diff --git a/src/devices/sound/dmadac.cpp b/src/devices/sound/dmadac.cpp
index 8493747b1b6..59fe5b15546 100644
--- a/src/devices/sound/dmadac.cpp
+++ b/src/devices/sound/dmadac.cpp
@@ -53,7 +53,7 @@ void dmadac_sound_device::device_start()
save_item(NAME(m_volume));
save_item(NAME(m_enabled));
save_item(NAME(m_frequency));
- save_pointer(NAME(m_buffer.get()), BUFFER_SIZE);
+ save_pointer(NAME(m_buffer), BUFFER_SIZE);
}
diff --git a/src/devices/sound/es5506.cpp b/src/devices/sound/es5506.cpp
index 4a00a38741e..01ef0f580eb 100644
--- a/src/devices/sound/es5506.cpp
+++ b/src/devices/sound/es5506.cpp
@@ -269,7 +269,7 @@ void es5506_device::device_start()
save_item(NAME(m_lrend));
save_item(NAME(m_irqv));
- save_pointer(NAME(m_scratch.get()), 2 * MAX_SAMPLE_CHUNK);
+ save_pointer(NAME(m_scratch), 2 * MAX_SAMPLE_CHUNK);
for (j = 0; j < 32; j++)
{
@@ -401,7 +401,7 @@ void es5505_device::device_start()
save_item(NAME(m_lrend));
save_item(NAME(m_irqv));
- save_pointer(NAME(m_scratch.get()), 2 * MAX_SAMPLE_CHUNK);
+ save_pointer(NAME(m_scratch), 2 * MAX_SAMPLE_CHUNK);
for (j = 0; j < 32; j++)
{
diff --git a/src/devices/sound/k054539.cpp b/src/devices/sound/k054539.cpp
index a7f10d51217..862f8e2f175 100644
--- a/src/devices/sound/k054539.cpp
+++ b/src/devices/sound/k054539.cpp
@@ -329,7 +329,7 @@ void k054539_device::init_chip()
save_item(NAME(flags));
save_item(NAME(regs));
- save_pointer(NAME(ram.get()), 0x4000);
+ save_pointer(NAME(ram), 0x4000);
save_item(NAME(reverb_pos));
save_item(NAME(cur_ptr));
save_item(NAME(cur_limit));
diff --git a/src/devices/sound/segapcm.cpp b/src/devices/sound/segapcm.cpp
index 919726a26c4..6daa0339de2 100644
--- a/src/devices/sound/segapcm.cpp
+++ b/src/devices/sound/segapcm.cpp
@@ -42,7 +42,7 @@ void segapcm_device::device_start()
m_stream = stream_alloc(0, 2, clock() / 128);
save_item(NAME(m_low));
- save_pointer(NAME(m_ram.get()), 0x800);
+ save_pointer(NAME(m_ram), 0x800);
}
diff --git a/src/devices/sound/sp0256.cpp b/src/devices/sound/sp0256.cpp
index 0dfe8194cc7..78f77da29ba 100644
--- a/src/devices/sound/sp0256.cpp
+++ b/src/devices/sound/sp0256.cpp
@@ -85,7 +85,7 @@ void sp0256_device::device_start()
/* Allocate a scratch buffer for generating ~10kHz samples. */
/* -------------------------------------------------------------------- */
m_scratch = std::make_unique<int16_t[]>(SCBUF_SIZE);
- save_pointer(NAME(m_scratch.get()), SCBUF_SIZE);
+ save_pointer(NAME(m_scratch), SCBUF_SIZE);
m_sc_head = m_sc_tail = 0;
diff --git a/src/devices/sound/zsg2.cpp b/src/devices/sound/zsg2.cpp
index 6300f02b84e..7a06ac072ef 100644
--- a/src/devices/sound/zsg2.cpp
+++ b/src/devices/sound/zsg2.cpp
@@ -92,8 +92,8 @@ void zsg2_device::device_start()
m_full_samples = make_unique_clear<int16_t[]>(m_mem_blocks * 4 + 4); // +4 is for empty block
// register for savestates
- save_pointer(NAME(m_mem_copy.get()), m_mem_blocks / sizeof(uint32_t));
- save_pointer(NAME(m_full_samples.get()), (m_mem_blocks * 4 + 4) / sizeof(int16_t));
+ save_pointer(NAME(m_mem_copy), m_mem_blocks / sizeof(uint32_t));
+ save_pointer(NAME(m_full_samples), (m_mem_blocks * 4 + 4) / sizeof(int16_t));
save_item(NAME(m_read_address));
for (int ch = 0; ch < 48; ch++)