Skip to content

Instantly share code, notes, and snippets.

@PromyLOPh
Created June 3, 2019 14:54
Show Gist options
  • Save PromyLOPh/b294b0882c3bf942bf456dda0af19632 to your computer and use it in GitHub Desktop.
Save PromyLOPh/b294b0882c3bf942bf456dda0af19632 to your computer and use it in GitHub Desktop.
diff --git a/src/player.c b/src/player.c
index 17fe7ed..870aaab 100644
--- a/src/player.c
+++ b/src/player.c
@@ -333,7 +333,8 @@ static bool openDevice (player_t * const player) {
int driver = ao_default_driver_id ();
if ((player->aoDev = ao_open_live (driver, &aoFmt, NULL)) == NULL) {
- BarUiMsg (player->settings, MSG_ERR, "Cannot open audio device.\n");
+ BarUiMsg (player->settings, MSG_ERR, "Cannot open audio device (error %i).\n",
+ errno);
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment