Ejemplo n.º 1
0
        /* This is called by discrete_sound_device */
        public void stream_start()
        {
            if (m_is_buffered != 0)
            {
                /* stream_buffered input only supported for sound devices */
                discrete_sound_device snd_device = (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, sample_rate(), stream_generate);  //stream_update_delegate(FUNC(discrete_dss_input_stream_node::stream_generate),this));

                snd_device.get_stream().set_input((int)m_stream_in_number, m_buffer_stream);
            }
        }
Ejemplo n.º 2
0
        /* This is called by discrete_sound_device */
        public void stream_start()
        {
            if (m_is_buffered != 0)
            {
                /* stream_buffered input only supported for sound devices */
                discrete_sound_device snd_device = (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, (u32)this.sample_rate(), stream_generate, sound_stream_flags.STREAM_DEFAULT_FLAGS);  //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);

                snd_device.get_stream().set_input((int)m_stream_in_number, m_buffer_stream);
            }
        }