mirror of
https://github.com/holub/mame
synced 2025-06-27 14:49:11 +03:00
pa_sound: add device name to error message
This commit is contained in:
parent
e0eba0e729
commit
12ff56f27b
@ -202,7 +202,7 @@ uint32_t sound_pa::stream_sink_open(uint32_t node, std::string name, uint32_t ra
|
|||||||
if(!err)
|
if(!err)
|
||||||
err = Pa_StartStream(si->second.m_stream);
|
err = Pa_StartStream(si->second.m_stream);
|
||||||
if(err) {
|
if(err) {
|
||||||
osd_printf_error("PortAudio error: %s\n", Pa_GetErrorText(err));
|
osd_printf_error("PortAudio error: %s: %s\n", m_info.m_nodes[node-1].m_name, Pa_GetErrorText(err));
|
||||||
m_streams.erase(si);
|
m_streams.erase(si);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -231,7 +231,7 @@ uint32_t sound_pa::stream_source_open(uint32_t node, std::string name, uint32_t
|
|||||||
if(!err)
|
if(!err)
|
||||||
err = Pa_StartStream(si->second.m_stream);
|
err = Pa_StartStream(si->second.m_stream);
|
||||||
if(err) {
|
if(err) {
|
||||||
osd_printf_error("PortAudio error: %s\n", Pa_GetErrorText(err));
|
osd_printf_error("PortAudio error: %s: %s\n", m_info.m_nodes[node-1].m_name, Pa_GetErrorText(err));
|
||||||
m_streams.erase(si);
|
m_streams.erase(si);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user