forked from len0rd/rockbox
Hosted PCM: Rework auto-muting code a bit
* If AUDIOHW_MUTE_ON_PAUSE, no meaningful change * Unconditionally unmute on playback start * xduoox3ii: Mute on sample rate change * rocker/xduoo: Stay muted after startup This avoids the nasty "pop" on startup, without doing the full mute-on-pause stuff that causes unacceptable dropouts on the X3ii. Change-Id: I2e3ee0bb8094e288f37a0acada86a80016ce5cac
This commit is contained in:
parent
9ad30869b8
commit
141e91ef1f
5 changed files with 44 additions and 22 deletions
|
@ -6,6 +6,14 @@ AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -127, 0, -30)
|
|||
AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0)
|
||||
#endif
|
||||
|
||||
// We want this, but the codec takes over a second to unmute!
|
||||
//#define AUDIOHW_MUTE_ON_PAUSE
|
||||
|
||||
#if defined(XDUOO_X3II)
|
||||
/* The AK4490 glitches when switching sample rates */
|
||||
#define AUDIOHW_MUTE_ON_SRATE_CHANGE
|
||||
#endif
|
||||
|
||||
void audiohw_mute(int mute);
|
||||
void xduoo_set_output(int ps);
|
||||
int xduoo_get_outputs(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue