(nw) more cassette wav sound

This commit is contained in:
Robbbert 2019-06-30 23:54:38 +10:00
parent 51c6e698d7
commit 66939696f1
9 changed files with 25 additions and 14 deletions

View File

@ -488,7 +488,7 @@ void radio86_state::radio86(machine_config &config)
PALETTE(config, m_palette, FUNC(radio86_state::radio86_palette), 3);
SPEAKER(config, "mono").front_center();
WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.25);
WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.05);
I8257(config, m_dma8257, XTAL(16'000'000) / 9);
m_dma8257->out_hrq_cb().set(FUNC(radio86_state::hrq_w));

View File

@ -22,6 +22,7 @@
#include "machine/wd_fdc.h"
#include "sound/sn76496.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
#include "video/i82730.h"
#include "bus/centronics/ctronics.h"
@ -579,6 +580,7 @@ void rc759_state::rc759(machine_config &config)
SPEAKER(config, "mono").front_center();
SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.50);
SN76489A(config, m_snd, 20_MHz_XTAL / 10).add_route(ALL_OUTPUTS, "mono", 1.0);
WAVE(config, "wave", m_cas).add_route(ALL_OUTPUTS, "mono", 0.05);
// internal centronics
CENTRONICS(config, m_centronics, centronics_devices, "printer");

View File

@ -167,6 +167,8 @@ Module timer tag static_vblank_timer name m_expire.seconds
#include "emu.h"
#include "includes/rm380z.h"
#include "sound/wave.h"
#include "speaker.h"
#include "emupal.h"
#include "screen.h"
@ -256,9 +258,10 @@ void rm380z_state::rm380z(machine_config &config)
/* cassette */
CASSETTE(config, m_cassette);
// m_cassette->set_default_state(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED);
m_cassette->set_default_state(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED);
//m_cassette->change_state((BIT(data,x)) ? CASSETTE_MOTOR_DISABLED : CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR);
// m_cassette->set_default_state(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED);
m_cassette->set_default_state(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED);
SPEAKER(config, "mono").front_center();
WAVE(config, "wave", m_cassette).add_route(ALL_OUTPUTS, "mono", 0.05);
/* RAM configurations */
RAM(config, RAM_TAG).set_default_size("56K");

View File

@ -500,7 +500,7 @@ void rx78_state::rx78(machine_config &config)
SPEAKER(config, "mono").front_center();
WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.25);
WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.05);
SN76489A(config, "sn1", XTAL(28'636'363)/8).add_route(ALL_OUTPUTS, "mono", 0.50); // unknown divider

View File

@ -31,6 +31,7 @@
#include "cpu/z80/z80.h"
#include "sound/saa1099.h"
#include "sound/wave.h"
#include "screen.h"
#include "softlist.h"
@ -545,6 +546,7 @@ void samcoupe_state::samcoupe(machine_config &config)
SPEAKER(config, "mono").front_center();
SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.50);
SAA1099(config, "saa1099", SAMCOUPE_XTAL_X1/3).add_route(ALL_OUTPUTS, "mono", 0.50); /* 8 MHz */
WAVE(config, "wave", m_cassette).add_route(ALL_OUTPUTS, "mono", 0.05);
/* internal ram */
RAM(config, RAM_TAG).set_default_size("512K").set_extra_options("256K,1280K,1536K,2304K,2560K,3328K,3584K,4352K,4608K");

View File

@ -17,6 +17,7 @@
#include "machine/wd_fdc.h"
#include "machine/input_merger.h"
#include "sound/spkrdev.h"
#include "sound/wave.h"
#include "video/mc6847.h"
#include "bus/centronics/ctronics.h"
#include "emupal.h"
@ -38,6 +39,7 @@ public:
, m_cassette(*this, "cassette")
, m_centronics(*this, "centronics")
, m_speaker(*this, "speaker")
, m_cass(*this, "cassette")
, m_irqs(*this, "irqs")
, m_y(*this, "Y%u", 0)
, m_video_ram(*this, "video_ram")
@ -46,14 +48,14 @@ public:
virtual void machine_start() override;
void shine_mem(address_map &map);
void shine(machine_config &config);
private:
DECLARE_READ8_MEMBER(via0_pa_r);
DECLARE_WRITE8_MEMBER(via0_pb_w);
DECLARE_WRITE8_MEMBER(floppy_w);
DECLARE_READ8_MEMBER(vdg_videoram_r);
void shine(machine_config &config);
private:
required_device<cpu_device> m_maincpu;
required_device<mc6847_base_device> m_vdg;
required_device<ram_device> m_ram;
@ -63,6 +65,7 @@ private:
required_device<cassette_image_device> m_cassette;
required_device<centronics_device> m_centronics;
required_device<speaker_sound_device> m_speaker;
required_device<cassette_image_device> m_cass;
required_device<input_merger_device> m_irqs;
required_ioport_array<8> m_y;
required_shared_ptr<uint8_t> m_video_ram;
@ -247,6 +250,7 @@ void shine_state::shine(machine_config &config)
/* sound hardware */
SPEAKER(config, "mono").front_center();
SPEAKER_SOUND(config, "speaker").add_route(ALL_OUTPUTS, "mono", 1.00);
WAVE(config, "wave", m_cass).add_route(ALL_OUTPUTS, "mono", 0.05);
RAM(config, m_ram);
m_ram->set_default_size("32K");
@ -267,8 +271,8 @@ void shine_state::shine(machine_config &config)
FLOPPY_CONNECTOR(config, m_floppy[0], "525qd", FLOPPY_525_QD, true, floppy_image_device::default_floppy_formats).enable_sound(true);
FLOPPY_CONNECTOR(config, m_floppy[1], "525qd", FLOPPY_525_QD, false, floppy_image_device::default_floppy_formats).enable_sound(true);
auto &cassette(CASSETTE(config, "cassette"));
cassette.set_default_state(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED);
CASSETTE(config, m_cass);
m_cass->set_default_state(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED);
}

View File

@ -920,7 +920,7 @@ void spc1500_state::spc1500(machine_config &config)
m_sound->port_a_read_callback().set(FUNC(spc1500_state::psga_r));
m_sound->port_b_write_callback().set(FUNC(spc1500_state::psgb_w));
m_sound->add_route(ALL_OUTPUTS, "mono", 1.00);
WAVE(config, "wave", m_cass).add_route(ALL_OUTPUTS, "mono", 0.25);
WAVE(config, "wave", m_cass).add_route(ALL_OUTPUTS, "mono", 0.05);
CENTRONICS(config, m_centronics, centronics_devices, "printer");
m_centronics->busy_handler().set(FUNC(spc1500_state::centronics_busy_w));

View File

@ -389,7 +389,7 @@ void special_state::special(machine_config &config)
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
WAVE(config, "wave", m_cassette).add_route(ALL_OUTPUTS, "speaker", 0.25);
WAVE(config, "wave", m_cassette).add_route(ALL_OUTPUTS, "speaker", 0.05);
/* Devices */
I8255(config, m_ppi);
@ -502,7 +502,7 @@ void special_state::erik(machine_config &config)
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
WAVE(config, "wave", m_cassette).add_route(ALL_OUTPUTS, "speaker", 0.25);
WAVE(config, "wave", m_cassette).add_route(ALL_OUTPUTS, "speaker", 0.05);
/* Devices */
CASSETTE(config, m_cassette);

View File

@ -706,7 +706,7 @@ void spectrum_state::spectrum_common(machine_config &config)
/* sound hardware */
SPEAKER(config, "mono").front_center();
WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.25);
WAVE(config, "wave", "cassette").add_route(ALL_OUTPUTS, "mono", 0.05);
SPEAKER_SOUND(config, "speaker").add_route(ALL_OUTPUTS, "mono", 0.50);
/* expansion port */