mirror of
https://github.com/holub/mame
synced 2025-05-29 09:03:08 +03:00
Fix for dkong and avi recording
This commit is contained in:
parent
c0fd575ad3
commit
b777e6af9c
@ -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);
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user