mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
removed not needed parameter from stream_alloc (nw)
it is set to same value in sound.c
This commit is contained in:
parent
5b659a4906
commit
93b5b0e912
@ -120,7 +120,7 @@ void s2636_device::device_start()
|
||||
save_item(NAME(m_bitmap));
|
||||
save_item(NAME(m_collision_bitmap));
|
||||
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate(), this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
|
||||
save_item(NAME(m_size));
|
||||
save_item(NAME(m_pos));
|
||||
save_item(NAME(m_level));
|
||||
|
@ -70,7 +70,7 @@ void asc_device::static_set_type(device_t &device, int type)
|
||||
void asc_device::device_start()
|
||||
{
|
||||
// create the stream
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 22257, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 22257);
|
||||
|
||||
memset(m_regs, 0, sizeof(m_regs));
|
||||
|
||||
|
@ -35,7 +35,7 @@ awacs_device::awacs_device(const machine_config &mconfig, const char *tag, devic
|
||||
void awacs_device::device_start()
|
||||
{
|
||||
// create the stream
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 22050, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 22050);
|
||||
|
||||
memset(m_regs, 0, sizeof(m_regs));
|
||||
|
||||
|
@ -465,7 +465,7 @@ void c352_device::device_start()
|
||||
|
||||
m_sample_rate_base = clock() / 288;
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 4, m_sample_rate_base, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 4, m_sample_rate_base);
|
||||
|
||||
// generate mulaw table for mulaw format samples
|
||||
for (i = 0; i < 256; i++)
|
||||
|
@ -262,7 +262,7 @@ void c6280_device::device_start()
|
||||
int rate = clock() / 16;
|
||||
|
||||
/* Create stereo stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, rate);
|
||||
|
||||
/* Loudest volume level for table */
|
||||
double level = 65535.0 / 6.0 / 32.0;
|
||||
|
@ -53,7 +53,7 @@ void dmadac_sound_device::device_start()
|
||||
m_volume = 0x100;
|
||||
|
||||
/* allocate a stream channel */
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, DEFAULT_SAMPLE_RATE, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, DEFAULT_SAMPLE_RATE);
|
||||
|
||||
/* register with the save state system */
|
||||
save_item(NAME(m_bufin));
|
||||
|
@ -253,7 +253,7 @@ void es5503_device::device_start()
|
||||
}
|
||||
|
||||
output_rate = (clock()/8)/34; // (input clock / 8) / # of oscs. enabled + 2
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, output_channels, output_rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, output_channels, output_rate);
|
||||
|
||||
m_timer = timer_alloc(0, NULL);
|
||||
m_timer->adjust(attotime::from_hz(output_rate), 0, attotime::from_hz(output_rate));
|
||||
|
@ -192,7 +192,7 @@ void es5506_device::device_start()
|
||||
m_eslog = fopen("es.log", "w");
|
||||
|
||||
/* create the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2 * channels, clock() / (16*32), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2 * channels, clock() / (16*32));
|
||||
|
||||
/* initialize the regions */
|
||||
m_region_base[0] = m_region0 ? (UINT16 *)machine().root_device().memregion(m_region0)->base() : NULL;
|
||||
@ -334,7 +334,7 @@ void es5505_device::device_start()
|
||||
m_eslog = fopen("es.log", "w");
|
||||
|
||||
/* create the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2 * channels, clock() / (16*32), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2 * channels, clock() / (16*32));
|
||||
|
||||
/* initialize the regions */
|
||||
m_region_base[0] = m_region0 ? (UINT16 *)machine().root_device().memregion(m_region0)->base() : NULL;
|
||||
|
@ -21,7 +21,7 @@ void esq_5505_5510_pump::device_start()
|
||||
{
|
||||
logerror("Clock = %d\n", clock());
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 8, 2, clock(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 8, 2, clock());
|
||||
m_timer = timer_alloc(0);
|
||||
m_timer->enable(false);
|
||||
|
||||
|
@ -140,7 +140,7 @@ void hc55516_device::start_common(UINT8 _shiftreg_mask, int _active_clock_hi)
|
||||
m_last_clock_state = 0;
|
||||
|
||||
/* create the stream */
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, SAMPLE_RATE, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, SAMPLE_RATE);
|
||||
|
||||
save_item(NAME(m_last_clock_state));
|
||||
save_item(NAME(m_digit));
|
||||
|
@ -43,7 +43,7 @@ void i5000snd_device::device_start()
|
||||
m_lut_volume[0xff] = 0;
|
||||
|
||||
// create the stream
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, clock() / 0x400, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, clock() / 0x400);
|
||||
|
||||
m_rom_base = (UINT16 *)device().machine().root_device().memregion(":i5000snd")->base();
|
||||
m_rom_mask = device().machine().root_device().memregion(":i5000snd")->bytes() / 2 - 1;
|
||||
|
@ -181,7 +181,7 @@ void k007232_device::device_start()
|
||||
for (int i = 0; i < 0x10; i++)
|
||||
m_wreg[i] = 0;
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0 , 2, clock()/128, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0 , 2, clock()/128);
|
||||
|
||||
KDAC_A_make_fncode();
|
||||
|
||||
|
@ -96,7 +96,7 @@ void msm5205_device::device_start()
|
||||
compute_tables();
|
||||
|
||||
/* stream system initialize */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock());
|
||||
m_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(msm5205_device::vclk_callback), this));
|
||||
|
||||
/* register for save states */
|
||||
|
@ -31,7 +31,7 @@ void msm5232_device::device_start()
|
||||
|
||||
init(clock(), rate);
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 11, rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 11, rate);
|
||||
|
||||
/* register with the save state system */
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(msm5232_device::postload), this));
|
||||
|
@ -439,7 +439,7 @@ void multipcm_device::device_start()
|
||||
|
||||
m_Rate=(float) clock() / MULTIPCM_CLOCKDIV;
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, m_Rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, m_Rate);
|
||||
|
||||
//Volume+pan table
|
||||
for(i=0;i<0x800;++i)
|
||||
|
@ -97,9 +97,9 @@ void namco_audio_device::device_start()
|
||||
|
||||
/* get stream channels */
|
||||
if (m_stereo)
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, m_sample_rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, m_sample_rate);
|
||||
else
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, m_sample_rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, m_sample_rate);
|
||||
|
||||
/* start with sound enabled, many games don't have a sound enable register */
|
||||
m_sound_enable = 1;
|
||||
|
@ -157,7 +157,7 @@ void nesapu_device::device_start()
|
||||
/* Initialize individual chips */
|
||||
(m_APU.dpcm).memory = &machine().device(m_cpu_tag)->memory().space(AS_PROGRAM);
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, rate);
|
||||
|
||||
/* register for save */
|
||||
for (int i = 0; i < 2; i++)
|
||||
|
@ -168,7 +168,7 @@ void okim6376_device::device_start()
|
||||
m_ch2_update = 0;
|
||||
m_st_pulses = 0;
|
||||
/* generate the name and create the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / m_divisor, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / m_divisor);
|
||||
|
||||
/* initialize the voices */
|
||||
for (voice = 0; voice < OKIM6376_VOICES; voice++)
|
||||
|
@ -630,7 +630,7 @@ void s14001a_device::device_start()
|
||||
|
||||
m_SpeechRom = *region();
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() ? clock() : machine().sample_rate(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() ? clock() : machine().sample_rate());
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
|
@ -207,7 +207,7 @@ void scsp_device::device_start()
|
||||
m_irq_cb.resolve_safe();
|
||||
m_main_irq_cb.resolve_safe();
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 44100, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 44100);
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
|
@ -289,7 +289,7 @@ void sn76477_device::device_config_complete()
|
||||
|
||||
void sn76477_device::device_start()
|
||||
{
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate(), this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
|
||||
|
||||
if (clock() > 0)
|
||||
{
|
||||
|
@ -149,7 +149,7 @@ void sn76496_base_device::device_start()
|
||||
|
||||
m_ready_handler.resolve_safe();
|
||||
|
||||
m_sound = machine().sound().stream_alloc(*this, 0, (m_stereo? 2:1), sample_rate, this);
|
||||
m_sound = machine().sound().stream_alloc(*this, 0, (m_stereo? 2:1), sample_rate);
|
||||
|
||||
for (i = 0; i < 4; i++) m_volume[i] = 0;
|
||||
|
||||
|
@ -77,7 +77,7 @@ void sp0250_device::device_start()
|
||||
machine().scheduler().timer_pulse(attotime::from_hz(clock()) * CLOCK_DIVIDER, timer_expired_delegate(FUNC(sp0250_device::timer_tick), this));
|
||||
}
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / CLOCK_DIVIDER, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / CLOCK_DIVIDER);
|
||||
|
||||
save_item(NAME(m_amp));
|
||||
save_item(NAME(m_pitch));
|
||||
|
@ -112,7 +112,7 @@ void sp0256_device::device_start()
|
||||
m_drq_cb(1);
|
||||
m_sby_cb(1);
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / CLOCK_DIVIDER, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() / CLOCK_DIVIDER);
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/* Configure our internal variables. */
|
||||
|
@ -117,7 +117,7 @@ void speaker_sound_device::device_start()
|
||||
int i;
|
||||
double x;
|
||||
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate(), this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
|
||||
|
||||
m_level = 0;
|
||||
for (i = 0; i < FILTER_LENGTH; i++)
|
||||
|
@ -294,7 +294,7 @@ void t6w28_device::device_start()
|
||||
int i;
|
||||
|
||||
m_sample_rate = clock() / 16;
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 2, m_sample_rate, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 2, m_sample_rate);
|
||||
|
||||
for (i = 0;i < 8;i++) m_volume[i] = 0;
|
||||
|
||||
|
@ -225,7 +225,7 @@ void upd7759_device::device_start()
|
||||
m_sample_offset_shift = (type() == UPD7759) ? 1 : 0;
|
||||
|
||||
/* allocate a stream channel */
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, clock()/4, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, clock()/4);
|
||||
|
||||
/* compute the stepping rate based on the chip's clock speed */
|
||||
m_step = 4 * FRAC_ONE;
|
||||
@ -300,7 +300,7 @@ void upd7756_device::device_start()
|
||||
m_sample_offset_shift = (type() == UPD7759) ? 1 : 0;
|
||||
|
||||
/* allocate a stream channel */
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, clock()/4, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, clock()/4);
|
||||
|
||||
/* compute the stepping rate based on the chip's clock speed */
|
||||
m_step = 4 * FRAC_ONE;
|
||||
|
@ -216,7 +216,7 @@ void vlm5030_device::device_start()
|
||||
m_rom = region()->base();
|
||||
m_address_mask = (region()->bytes() - 1) & 0xffff;
|
||||
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, clock() / 440, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, clock() / 440);
|
||||
|
||||
/* don't restore "UINT8 *m_rom" when use vlm5030_set_rom() */
|
||||
|
||||
|
@ -39,7 +39,7 @@ vrc6snd_device::vrc6snd_device(const machine_config &mconfig, const char *tag, d
|
||||
|
||||
void vrc6snd_device::device_start()
|
||||
{
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock());
|
||||
|
||||
m_freqctrl = m_pulsectrl[0] = m_pulsectrl[1] = 0;
|
||||
m_pulsefrql[0] = m_pulsefrql[1] = m_pulsefrqh[0] = m_pulsefrqh[1] = 0;
|
||||
|
@ -55,9 +55,9 @@ void wave_device::device_start()
|
||||
speaker_device_iterator spkiter(machine().root_device());
|
||||
int speakers = spkiter.count();
|
||||
if (speakers > 1)
|
||||
machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate(), this);
|
||||
machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
|
||||
else
|
||||
machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate(), this);
|
||||
machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
|
@ -118,7 +118,7 @@ void x1_010_device::device_start()
|
||||
LOG_SOUND(("masterclock = %d rate = %d\n", clock(), m_rate ));
|
||||
|
||||
/* get stream channels */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, m_rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, m_rate);
|
||||
|
||||
save_item(NAME(m_rate));
|
||||
save_item(NAME(m_sound_enable));
|
||||
|
@ -48,7 +48,7 @@ ymz770_device::ymz770_device(const machine_config &mconfig, const char *tag, dev
|
||||
void ymz770_device::device_start()
|
||||
{
|
||||
// create the stream
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 16000, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 16000);
|
||||
m_rom_base = *region();
|
||||
m_rom_limit = region()->bytes() * 8;
|
||||
|
||||
|
@ -71,7 +71,7 @@ void amiga_sound_device::device_start()
|
||||
}
|
||||
|
||||
/* create the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 4, clock() / CLOCK_DIVIDER, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 4, clock() / CLOCK_DIVIDER);
|
||||
}
|
||||
|
||||
|
||||
|
@ -112,7 +112,7 @@ void beezer_sound_device::device_start()
|
||||
m_sh6840_clocks_per_sample = (int)(((double)SH6840_CLOCK / (double)sample_rate) * (double)(1 << 24));
|
||||
|
||||
/* allocate the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, sample_rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, sample_rate);
|
||||
m_maincpu = machine().device<cpu_device>("maincpu");
|
||||
|
||||
save_item(NAME(m_sh6840_volume));
|
||||
|
@ -74,7 +74,7 @@ void dsbz80_device::device_start()
|
||||
{
|
||||
UINT8 *rom_base = machine().root_device().memregion("mpeg")->base();
|
||||
decoder = new mpeg_audio(rom_base, mpeg_audio::L2, false, 0);
|
||||
machine().sound().stream_alloc(*this, 0, 2, 32000, this);
|
||||
machine().sound().stream_alloc(*this, 0, 2, 32000);
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
|
@ -197,7 +197,7 @@ void exidy_sound_device::common_sh_start()
|
||||
m_sh6840_clocks_per_sample = (int)((double)SH6840_CLOCK / (double)sample_rate * (double)(1 << 24));
|
||||
|
||||
/* allocate the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, sample_rate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, sample_rate);
|
||||
m_maincpu = machine().device<cpu_device>("maincpu");
|
||||
|
||||
sh6840_register_state_globals();
|
||||
|
@ -117,7 +117,7 @@ void exidy440_sound_device::device_start()
|
||||
m_channel_frequency[3] = clock()/2;
|
||||
|
||||
/* get stream channels */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, clock(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, clock());
|
||||
|
||||
/* allocate the sample cache */
|
||||
length = machine().root_device().memregion("cvsd")->bytes() * 16 + MAX_CACHE_ENTRIES * sizeof(sound_cache_entry);
|
||||
|
@ -46,7 +46,7 @@ void flower_sound_device::device_start()
|
||||
flower_sound_channel *voice;
|
||||
|
||||
m_effect_timer = timer_alloc(TIMER_CLOCK_EFFECT);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, MIXER_SAMPLERATE, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, MIXER_SAMPLERATE);
|
||||
m_mixer_buffer = auto_alloc_array(machine(), short, MIXER_SAMPLERATE);
|
||||
make_mixer_table(8, MIXER_DEFGAIN);
|
||||
|
||||
|
@ -49,7 +49,7 @@ void geebee_sound_device::device_start()
|
||||
m_decay[0x7fff - i] = (INT16) (0x7fff/exp(1.0*i/4096));
|
||||
|
||||
/* 1V = HSYNC = 18.432MHz / 3 / 2 / 384 = 8000Hz */
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, 18432000 / 3 / 2 / 384, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, 18432000 / 3 / 2 / 384);
|
||||
m_vcount = 0;
|
||||
|
||||
m_volume_timer = timer_alloc(TIMER_VOLUME_DECAY);
|
||||
|
@ -197,7 +197,7 @@ void micro3d_sound_device::device_config_complete()
|
||||
void micro3d_sound_device::device_start()
|
||||
{
|
||||
/* Allocate the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
|
||||
filter_init(machine(), &m_filter, machine().sample_rate());
|
||||
|
||||
configure_filter(&m_noise_filters[0], 2.7e3 + 2.7e3, 1.0e-6);
|
||||
|
@ -98,7 +98,7 @@ void phoenix_sound_device::device_start()
|
||||
m_poly18[i] = bits;
|
||||
}
|
||||
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate(), this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
|
||||
|
||||
save_item(NAME(m_sound_latch_a));
|
||||
save_item(NAME(m_c24_state.counter));
|
||||
|
@ -668,7 +668,7 @@ void pleiads_sound_device::common_start()
|
||||
m_poly18[i] = bits;
|
||||
}
|
||||
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate(), this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
|
||||
|
||||
save_item(NAME(m_sound_latch_a));
|
||||
save_item(NAME(m_sound_latch_b));
|
||||
|
@ -57,7 +57,7 @@ void sega005_sound_device::device_start()
|
||||
segag80r_state *state = machine().driver_data<segag80r_state>();
|
||||
|
||||
/* create the stream */
|
||||
m_sega005_stream = machine().sound().stream_alloc(*this, 0, 1, SEGA005_COUNTER_FREQ, this);
|
||||
m_sega005_stream = machine().sound().stream_alloc(*this, 0, 1, SEGA005_COUNTER_FREQ);
|
||||
|
||||
/* create a timer for the 555 */
|
||||
m_sega005_sound_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(sega005_sound_device::sega005_auto_timer), this));
|
||||
|
@ -296,7 +296,7 @@ void usb_sound_device::device_start()
|
||||
m_work_ram = auto_alloc_array(machine(), UINT8, 0x400);
|
||||
|
||||
/* create a sound stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, SAMPLE_RATE, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, SAMPLE_RATE);
|
||||
|
||||
/* initialize state */
|
||||
m_noise_shift = 0x15555;
|
||||
|
@ -542,7 +542,7 @@ void seibu_adpcm_device::device_config_complete()
|
||||
void seibu_adpcm_device::device_start()
|
||||
{
|
||||
m_playing = 0;
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock());
|
||||
m_base = machine().root_device().memregion(m_rom_region)->base();
|
||||
m_adpcm.reset();
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ void snes_sound_device::device_config_complete()
|
||||
|
||||
void snes_sound_device::device_start()
|
||||
{
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 2, 32000, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 2, 32000);
|
||||
|
||||
m_ram = auto_alloc_array_clear(machine(), UINT8, SNES_SPCRAM_SIZE);
|
||||
|
||||
|
@ -393,7 +393,7 @@ void snk6502_sound_device::device_start()
|
||||
// 38.99 Hz update (according to schematic)
|
||||
set_music_clock(M_LN2 * (RES_K(18) * 2 + RES_K(1)) * CAP_U(1));
|
||||
|
||||
m_tone_stream = machine().sound().stream_alloc(*this, 0, 1, SAMPLE_RATE, this);
|
||||
m_tone_stream = machine().sound().stream_alloc(*this, 0, 1, SAMPLE_RATE);
|
||||
}
|
||||
|
||||
inline void snk6502_sound_device::validate_tone_channel(int channel)
|
||||
|
@ -42,7 +42,7 @@ void turrett_device::device_start()
|
||||
m_direct = &space().direct();
|
||||
|
||||
// Create the sound stream
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 44100, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, 44100);
|
||||
|
||||
// Create the volume table
|
||||
for (int i = 0; i < 0x4f; ++i)
|
||||
|
@ -102,7 +102,7 @@ void tx1_sound_device::device_start()
|
||||
|
||||
|
||||
/* Allocate the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
|
||||
m_freq_to_step = (double)(1 << TX1_FRAC) / (double)machine().sample_rate();
|
||||
|
||||
/* Compute the engine resistor weights */
|
||||
@ -382,7 +382,7 @@ void buggyboy_sound_device::device_start()
|
||||
m_eng_voltages[i] = combine_4_weights(aweights, BIT(tmp[i], 0), BIT(tmp[i], 1), BIT(tmp[i], 2), BIT(tmp[i], 3));
|
||||
|
||||
/* Allocate the stream */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
|
||||
m_freq_to_step = (double)(1 << 24) / (double)machine().sample_rate();
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ void warpwarp_sound_device::device_start()
|
||||
for (int i = 0; i < 0x8000; i++)
|
||||
m_decay[0x7fff - i] = (INT16) (0x7fff/exp(1.0*i/4096));
|
||||
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, CLOCK_16H, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, CLOCK_16H);
|
||||
|
||||
m_sound_volume_timer = timer_alloc(TIMER_SOUND_VOLUME_DECAY);
|
||||
m_music_volume_timer = timer_alloc(TIMER_MUSIC_VOLUME_DECAY);
|
||||
|
@ -51,7 +51,7 @@ void wiping_sound_device::device_start()
|
||||
sound_channel *voice;
|
||||
|
||||
/* get stream channels */
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, samplerate, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, samplerate);
|
||||
|
||||
/* allocate a pair of buffers to mix into - 1 second's worth should be more than enough */
|
||||
m_mixer_buffer = auto_alloc_array_clear(machine(), short, 2 * samplerate);
|
||||
|
@ -59,7 +59,7 @@ void mjkjidai_adpcm_device::device_config_complete()
|
||||
void mjkjidai_adpcm_device::device_start()
|
||||
{
|
||||
m_playing = 0;
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock());
|
||||
m_base = machine().root_device().memregion("adpcm")->base();
|
||||
m_adpcm.reset();
|
||||
|
||||
|
@ -141,7 +141,7 @@ void renegade_adpcm_device::device_config_complete()
|
||||
void renegade_adpcm_device::device_start()
|
||||
{
|
||||
m_playing = 0;
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock());
|
||||
m_base = machine().root_device().memregion("adpcm")->base();
|
||||
m_adpcm.reset();
|
||||
|
||||
|
@ -56,7 +56,7 @@ arcadia_sound_device::arcadia_sound_device(const machine_config &mconfig, const
|
||||
//-------------------------------------------------
|
||||
void arcadia_sound_device::device_start()
|
||||
{
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, UVI_PAL*OSAMP, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, UVI_PAL*OSAMP);
|
||||
m_lfsr = LFSR_INIT;
|
||||
m_tval = 1;
|
||||
logerror("arcadia_sound start\n");
|
||||
|
@ -31,7 +31,7 @@ dai_sound_device::dai_sound_device(const machine_config &mconfig, const char *ta
|
||||
|
||||
void dai_sound_device::device_start()
|
||||
{
|
||||
m_mixer_channel = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate(), this);
|
||||
m_mixer_channel = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
|
@ -107,7 +107,7 @@ void dave_device::device_start()
|
||||
the volumes are mixed internally and output as left and right volume */
|
||||
|
||||
/* 3 tone channels + 1 noise channel */
|
||||
m_sound_stream_var = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate(), this);
|
||||
m_sound_stream_var = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
|
||||
}
|
||||
|
||||
|
||||
|
@ -125,7 +125,7 @@ void gameboy_sound_device::device_config_complete()
|
||||
|
||||
void gameboy_sound_device::device_start()
|
||||
{
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate(), this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
|
||||
m_rate = machine().sample_rate();
|
||||
|
||||
save_item(NAME(m_snd_regs));
|
||||
|
@ -187,7 +187,7 @@ void lynx_sound_device::init()
|
||||
|
||||
void lynx_sound_device::device_start()
|
||||
{
|
||||
m_mixer_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate(), this);
|
||||
m_mixer_channel = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
|
||||
m_usec_per_sample = 1000000 / machine().sample_rate();
|
||||
m_timer_delegate.bind_relative_to(*owner());
|
||||
init();
|
||||
@ -197,7 +197,7 @@ void lynx_sound_device::device_start()
|
||||
|
||||
void lynx2_sound_device::device_start()
|
||||
{
|
||||
m_mixer_channel = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate(), this);
|
||||
m_mixer_channel = machine().sound().stream_alloc(*this, 0, 2, machine().sample_rate());
|
||||
m_usec_per_sample = 1000000 / machine().sample_rate();
|
||||
m_timer_delegate.bind_relative_to(*owner());
|
||||
init();
|
||||
|
@ -61,7 +61,7 @@ void mac_sound_device::device_start()
|
||||
mac_state *mac = machine().driver_data<mac_state>();
|
||||
|
||||
m_snd_cache = auto_alloc_array_clear(machine(), UINT8, SND_CACHE_SIZE);
|
||||
m_mac_stream = machine().sound().stream_alloc(*this, 0, 1, MAC_SAMPLE_RATE, this);
|
||||
m_mac_stream = machine().sound().stream_alloc(*this, 0, 1, MAC_SAMPLE_RATE);
|
||||
|
||||
m_ram = machine().device<ram_device>(RAM_TAG);
|
||||
m_mac_model = mac->m_model;
|
||||
|
@ -43,7 +43,7 @@ void socrates_snd_device::device_start()
|
||||
m_DAC_output = 0x00; /* output */
|
||||
m_state[0] = m_state[1] = m_state[2] = 0;
|
||||
m_accum[0] = m_accum[1] = m_accum[2] = 0xFF;
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() ? clock() : machine().sample_rate(), this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, clock() ? clock() : machine().sample_rate());
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@ void tvc_sound_device::device_start()
|
||||
// resolve callbacks
|
||||
m_write_sndint.resolve_safe();
|
||||
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate(), this );
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
|
||||
m_sndint_timer = timer_alloc(TIMER_SNDINT);
|
||||
}
|
||||
|
||||
|
@ -239,7 +239,7 @@ void upd1771c_device::device_start()
|
||||
|
||||
m_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(upd1771c_device::ack_callback),this));
|
||||
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, clock() / 4, this);
|
||||
m_channel = machine().sound().stream_alloc(*this, 0, 1, clock() / 4);
|
||||
|
||||
save_item(NAME(m_packet));
|
||||
save_item(NAME(m_index));
|
||||
|
@ -208,7 +208,7 @@ void vboysnd_device::device_start()
|
||||
int i;
|
||||
|
||||
// create the stream
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, AUDIO_FREQ, this);
|
||||
m_stream = machine().sound().stream_alloc(*this, 0, 2, AUDIO_FREQ);
|
||||
|
||||
for (i=0; i<2048; i++)
|
||||
waveFreq2LenTbl[i] = AUDIO_FREQ / (5000000.0/(float)((2048-i) * 32));
|
||||
|
@ -65,7 +65,7 @@ void pv1000_sound_device::device_config_complete()
|
||||
|
||||
void pv1000_sound_device::device_start()
|
||||
{
|
||||
m_sh_channel = machine().sound().stream_alloc(*this, 0, 1, clock() / 1024, this);
|
||||
m_sh_channel = machine().sound().stream_alloc(*this, 0, 1, clock() / 1024);
|
||||
|
||||
save_item(NAME(m_voice[0].count));
|
||||
save_item(NAME(m_voice[0].period));
|
||||
|
Loading…
Reference in New Issue
Block a user