summaryrefslogtreecommitdiffstats
path: root/mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixer.c')
-rw-r--r--mixer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mixer.c b/mixer.c
index e58c8a6713..4b9d8db1b7 100644
--- a/mixer.c
+++ b/mixer.c
@@ -29,7 +29,6 @@
#include "libaf/af.h"
#include "mixer.h"
-#include "help_mp.h"
char * mixer_device=NULL;
char * mixer_channel=NULL;
@@ -82,11 +81,11 @@ void mixer_setvolume(mixer_t *mixer, float l, float r)
af_to_dB (AF_NCH, db_vals, db_vals, 20.0);
if (!af_control_any_rev(mixer->afilter,
AF_CONTROL_VOLUME_LEVEL | AF_CONTROL_SET, db_vals)) {
- mp_msg(MSGT_GLOBAL, MSGL_INFO, MSGTR_InsertingAfVolume);
+ mp_tmsg(MSGT_GLOBAL, MSGL_INFO, "[Mixer] No hardware mixing, inserting volume filter.\n");
if (af_add(mixer->afilter, "volume")) {
if (!af_control_any_rev(mixer->afilter,
AF_CONTROL_VOLUME_LEVEL | AF_CONTROL_SET, db_vals)) {
- mp_msg(MSGT_GLOBAL, MSGL_ERR, MSGTR_NoVolume);
+ mp_tmsg(MSGT_GLOBAL, MSGL_ERR, "[Mixer] No volume control available.\n");
return;
}
}
@@ -160,7 +159,7 @@ void mixer_setbalance(mixer_t *mixer, float val)
return;
if (!(af_pan_balance = af_add(mixer->afilter, "pan"))) {
- mp_msg(MSGT_GLOBAL, MSGL_ERR, MSGTR_NoBalance);
+ mp_tmsg(MSGT_GLOBAL, MSGL_ERR, "[Mixer] No balance control available.\n");
return;
}