Fix for dkong and avi recording

This commit is contained in:
Olivier Galibert 2025-04-28 09:26:10 +02:00
parent c0fd575ad3
commit b777e6af9c
2 changed files with 3 additions and 1 deletions

View File

@ -312,7 +312,7 @@ void DISCRETE_CLASS_NAME(dss_input_stream)::stream_start(void)
discrete_sound_device *snd_device = downcast<discrete_sound_device *>(m_device);
//assert(DSS_INPUT_STREAM__STREAM < snd_device->m_input_stream_list.count());
m_buffer_stream = m_device->machine().sound().stream_alloc(*snd_device, 0, 1, this->sample_rate(), stream_update_delegate(&discrete_dss_input_stream_node::stream_generate,this), STREAM_DEFAULT_FLAGS);
m_buffer_stream = m_device->machine().sound().stream_alloc(*snd_device, 1, 1, this->sample_rate(), stream_update_delegate(&discrete_dss_input_stream_node::stream_generate,this), STREAM_DEFAULT_FLAGS);
// WTF?
// snd_device->get_stream()->set_input(m_stream_in_number, m_buffer_stream);

View File

@ -197,6 +197,8 @@ bool avi_movie_recording::initialize(running_machine &machine, std::unique_ptr<e
info.audio_samplebits = 16;
info.audio_samplerate = machine.sample_rate();
m_channels = info.audio_channels;
// compute the frame time
set_frame_period(attotime::from_ticks(info.video_sampletime, info.video_timescale));