diff options
author | 2011-01-27 08:06:43 +0000 | |
---|---|---|
committer | 2011-01-27 08:06:43 +0000 | |
commit | c94b8c94901066b9f44a1b13d7448502fa147974 (patch) | |
tree | 9787f6d7088152dab9c1a509700d1afa75074062 /src/emu/sound/multipcm.c | |
parent | e214465d3578e0c713f4a686916e40c2e9461050 (diff) |
C++-ified the sound and streams interfaces. Combined sound.c and streams.c
into one file, and separated the speaker device into its own file.
Generalized the concept of dynamically assigned inputs and re-wired the
speaker to work this way, so it is now treated just like any other
sound device. Added methods to the device_sound_interface for controlling
output gain and mapping device inputs/outputs to stream inputs/outputs.
Also made the sound_stream_update() method pure virtual, so all modern
sound devices must use the new mechanism for stream updates.
Primary changes outside of the core are:
stream_update(stream) == stream->update()
stream_create(device,...) == machine->sound().stream_alloc(*device,...)
sound_global_enable(machine,enable) == machine->sound().system_enable(enable)
Beyond this, the patterns are relatively obvious for the remaining calls.
Diffstat (limited to 'src/emu/sound/multipcm.c')
-rw-r--r-- | src/emu/sound/multipcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/sound/multipcm.c b/src/emu/sound/multipcm.c index 6a1011e47b6..a810f58a4cf 100644 --- a/src/emu/sound/multipcm.c +++ b/src/emu/sound/multipcm.c @@ -32,7 +32,6 @@ */ #include "emu.h" -#include "streams.h" #include "multipcm.h" //???? @@ -503,7 +502,7 @@ static DEVICE_START( multipcm ) ptChip->ROM=*device->region(); ptChip->Rate=(float) device->clock() / MULTIPCM_CLOCKDIV; - ptChip->stream = stream_create(device, 0, 2, ptChip->Rate, ptChip, MultiPCM_update); + ptChip->stream = device->machine->sound().stream_alloc(*device, 0, 2, ptChip->Rate, ptChip, MultiPCM_update); //Volume+pan table for(i=0;i<0x800;++i) |