summaryrefslogtreecommitdiffstats
path: root/libao2/ao_esd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libao2/ao_esd.c')
-rw-r--r--libao2/ao_esd.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/libao2/ao_esd.c b/libao2/ao_esd.c
index 807a639679..5cca049731 100644
--- a/libao2/ao_esd.c
+++ b/libao2/ao_esd.c
@@ -37,6 +37,7 @@
#include "afmt.h"
#include "../config.h"
#include "../mp_msg.h"
+#include "../help_mp.h"
#undef ESD_DEBUG
@@ -152,8 +153,7 @@ static int init(int rate_hz, int channels, int format, int flags)
if (esd_fd < 0) {
esd_fd = esd_open_sound(server);
if (esd_fd < 0) {
- mp_msg(MSGT_AO, MSGL_ERR,
- "AO: [esd] esd_open_sound failed: %s\n",
+ mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_ESD_CantOpenSound,
strerror(errno));
return 0;
}
@@ -230,17 +230,14 @@ static int init(int rate_hz, int channels, int format, int flags)
lag_serv = (esd_latency * 4.0f) / (bytes_per_sample * rate_hz);
lag_seconds = lag_net + lag_serv;
audio_delay += lag_seconds;
- mp_msg(MSGT_AO, MSGL_INFO,
- "AO: [esd] latency: [server: %0.2fs, net: %0.2fs] "
- "(adjust %0.2fs)\n", lag_serv, lag_net, lag_seconds);
+ mp_msg(MSGT_AO, MSGL_INFO,MSGTR_AO_ESD_LatencyInfo,
+ lag_serv, lag_net, lag_seconds);
}
esd_play_fd = esd_play_stream_fallback(esd_fmt, rate_hz,
server, ESD_CLIENT_NAME);
if (esd_play_fd < 0) {
- mp_msg(MSGT_AO, MSGL_ERR,
- "AO: [esd] failed to open esd playback stream: %s\n",
- strerror(errno));
+ mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_ESD_CantOpenPBStream, strerror(errno));
return 0;
}