mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
pa_sound: lower latency interval steps
This commit is contained in:
parent
d2ee234660
commit
41a2f91e7c
@ -190,7 +190,7 @@ uint32_t sound_pa::stream_sink_open(uint32_t node, std::string name, uint32_t ra
|
||||
op.device = node - 1;
|
||||
op.channelCount = m_info.m_nodes[node-1].m_sinks;
|
||||
op.sampleFormat = paInt16;
|
||||
op.suggestedLatency = (m_audio_latency > 0) ? (m_audio_latency / 10.0) : Pa_GetDeviceInfo(node - 1)->defaultLowOutputLatency;
|
||||
op.suggestedLatency = (m_audio_latency > 0) ? (m_audio_latency / 40.0) : Pa_GetDeviceInfo(node - 1)->defaultLowOutputLatency;
|
||||
op.hostApiSpecificStreamInfo = nullptr;
|
||||
|
||||
PaError err = Pa_OpenStream(&si->second.m_stream, nullptr, &op, rate, paFramesPerBufferUnspecified, 0, s_stream_callback, &si->second);
|
||||
@ -218,7 +218,7 @@ uint32_t sound_pa::stream_source_open(uint32_t node, std::string name, uint32_t
|
||||
ip.device = node - 1;
|
||||
ip.channelCount = m_info.m_nodes[node-1].m_sources;
|
||||
ip.sampleFormat = paInt16;
|
||||
ip.suggestedLatency = (m_audio_latency > 0) ? (m_audio_latency / 10.0) : Pa_GetDeviceInfo(node - 1)->defaultLowInputLatency;
|
||||
ip.suggestedLatency = (m_audio_latency > 0) ? (m_audio_latency / 40.0) : Pa_GetDeviceInfo(node - 1)->defaultLowInputLatency;
|
||||
ip.hostApiSpecificStreamInfo = nullptr;
|
||||
|
||||
PaError err = Pa_OpenStream(&si->second.m_stream, &ip, nullptr, rate, paFramesPerBufferUnspecified, 0, s_stream_callback, &si->second);
|
||||
|
Loading…
Reference in New Issue
Block a user