Improve error message for audio output failure.

This commit is contained in:
wb2osz 2018-09-12 06:31:42 -04:00
parent be705987e2
commit 11071bb06a
1 changed files with 8 additions and 0 deletions

View File

@ -951,7 +951,15 @@ int audio_put (int a, int c)
timeout--; timeout--;
if (timeout <= 0) { if (timeout <= 0) {
text_color_set(DW_COLOR_ERROR); text_color_set(DW_COLOR_ERROR);
// TODO: open issues 78 & 165. How can we avoid/improve this?
dw_printf ("Audio output failure waiting for buffer.\n"); dw_printf ("Audio output failure waiting for buffer.\n");
dw_printf ("This can occur when we are producing audio output for\n");
dw_printf ("transmit and the operating system doesn't provide buffer\n");
dw_printf ("space after waiting and retrying many times.\n");
//dw_printf ("In recent years, this has been reported only when running the\n");
//dw_printf ("Windows version with VMWare on a Macintosh.\n");
ptt_term (); ptt_term ();
return (-1); return (-1);
} }