summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-09 23:18:09 +0100
committerwm4 <wm4@nowhere>2013-11-09 23:32:50 +0100
commita3e2019c2d0e5157c3a744be00db3a9ca255aae7 (patch)
treedfffc5f6ba02b98668080605c3ae365db3662a77 /audio/out/ao.c
parent3af094062ef95b6fd004c58bd8cd9ea204f59105 (diff)
downloadmpv-a3e2019c2d0e5157c3a744be00db3a9ca255aae7.tar.bz2
mpv-a3e2019c2d0e5157c3a744be00db3a9ca255aae7.tar.xz
ao: print requested audio format on init
Also remove the rather bad/incomplete log calls from ao_alsa and ao_oss.
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r--audio/out/ao.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index ccbcc16e88..88f0b2223d 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -153,6 +153,10 @@ static struct ao *ao_create(bool probing, struct mpv_global *global,
if (m_config_set_obj_params(config, args) < 0)
goto error;
ao->priv = config->optstruct;
+ char *chmap = mp_chmap_to_str(&ao->channels);
+ MP_VERBOSE(ao, "requested format: %d Hz, %s channels, %s\n",
+ ao->samplerate, chmap, af_fmt_to_str(ao->format));
+ talloc_free(chmap);
if (ao->driver->init(ao) < 0)
goto error;
ao->bps = ao->channels.num * ao->samplerate * af_fmt2bits(ao->format) / 8;