diff options
author | wm4 <wm4@nowhere> | 2013-08-22 23:12:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-22 23:12:35 +0200 |
commit | edd36a3afce4ca3778461e61df64f6a79ba94079 (patch) | |
tree | a7916172632fea425b9c3a58e673573203850266 /audio/out/ao_portaudio.c | |
parent | cb54c2dda8be8a79e8bc6c658b4815c55bdfc14e (diff) | |
download | mpv-edd36a3afce4ca3778461e61df64f6a79ba94079.tar.bz2 mpv-edd36a3afce4ca3778461e61df64f6a79ba94079.tar.xz |
audio/out: do some mp_msg conversions
Use the new MP_ macros for some AOs instead of mp_msg.
Not all AOs are converted, and some only partially. In some cases, some
additional cosmetic changes are made.
Diffstat (limited to 'audio/out/ao_portaudio.c')
-rw-r--r-- | audio/out/ao_portaudio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/audio/out/ao_portaudio.c b/audio/out/ao_portaudio.c index b80549398f..c9f55646a3 100644 --- a/audio/out/ao_portaudio.c +++ b/audio/out/ao_portaudio.c @@ -68,11 +68,11 @@ static const struct format_map format_maps[] = { static bool check_pa_ret(int ret) { if (ret < 0) { - mp_msg(MSGT_AO, MSGL_ERR, "[portaudio] %s\n", + mp_msg(MSGT_AO, MSGL_ERR, "[ao/portaudio] %s\n", Pa_GetErrorText(ret)); if (ret == paUnanticipatedHostError) { const PaHostErrorInfo* hosterr = Pa_GetLastHostErrorInfo(); - mp_msg(MSGT_AO, MSGL_ERR, "[portaudio] Host error: %s\n", + mp_msg(MSGT_AO, MSGL_ERR, "[ao/portaudio] Host error: %s\n", hosterr->errorText); } return false; @@ -121,7 +121,7 @@ static int find_device(const char *name) } } if (found == paNoDevice && !help) - mp_msg(MSGT_AO, MSGL_WARN, "[portaudio] Device '%s' not found!\n", + mp_msg(MSGT_AO, MSGL_WARN, "[ao/portaudio] Device '%s' not found!\n", name); return found; } @@ -183,7 +183,7 @@ static int stream_callback(const void *input, res = paComplete; priv->play_remaining = false; } else { - mp_msg(MSGT_AO, MSGL_ERR, "[portaudio] Buffer underflow!\n"); + MP_ERR(ao, "Buffer underflow!\n"); } fill_silence(output, len_bytes); } @@ -253,8 +253,7 @@ static int init(struct ao *ao) fmt++; } if (!fmt->pa_format) { - mp_msg(MSGT_AO, MSGL_V, - "[portaudio] Unsupported format, using default.\n"); + MP_VERBOSE(ao, "Unsupported format, using default.\n"); fmt = format_maps; } |