请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TLV320AIC3254-Q1 工具与软件:
大家好、团队成员:
在音乐播放和暂停之间切换时会触发噼啪声(附件是编解码器日志文件)。 是否有可以调节的寄存器?
此外、是否有用于清除 DAC 缓冲器的寄存器?
(我试过。 当编解码器 DAC 通道设置寄存器2设置为完全静音时、编解码器输出在播放和暂停之间切换时仍有噼啪噪声。)
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
大家好、团队成员:
在音乐播放和暂停之间切换时会触发噼啪声(附件是编解码器日志文件)。 是否有可以调节的寄存器?
此外、是否有用于清除 DAC 缓冲器的寄存器?
(我试过。 当编解码器 DAC 通道设置寄存器2设置为完全静音时、编解码器输出在播放和暂停之间切换时仍有噼啪噪声。)
您好!
您如何定义您的音乐播放和暂停? 需要记住的一点是、如果数字音频从非零值变为零("暂停")而没有斜降、那么总是会出现爆裂声。
我看到在你的脚本中,你在结束时取消静音,然后将音量设置得稍高,这也可能会导致爆裂声? 您是否可以将音量设置更改为静音之前的音量设置? 不过、我认为您可能不需要将器件静音、而是需要在音频上实现几毫秒的斜降/升操作、以便实现理想的弹出控制。 即使启用了软步进、这也不包括静音和取消静音之间的软步进、而只是包括不同的音量级别。 如果在-63dB 和0dB 之间切换、则不会有噼啪声、但我看到您的系统设置为-63dB、取消静音、然后设置为-42dB。 删除系统中的静音也可能对弹出有所帮助。 如果您在这方面需要更多帮助、请告诉我。
在此处附加注释脚本以供将来参考:
/* pause to play */ 00 00 #page 0 40 10 #dac auto muted if input si dc for more than 100 samps, left and right dac not muted, independent volume control /* play to pause */ 00 00 40 1C #left channel and right muted. /* 1st play */ 00 00 01 01 #software reset 00 00 1B 00 #i2s, 16 bit, slave mode 00 00 04 07 #pll input=bclk, pll clock is codec_clkin 06 14 #J=20 07 00 #D = 0 08 00 #D = 0 05 93 #pll powered up, P=1, R=3 0B 85 #NDAC powered up, ndac=5 0C 83 #MDAC powered up, mdac = 3 0D 00 #DOSR msb = 0 0E 80 #DOSR = 128 00 01 #page 1 01 08 #disable weak connection of avdd with dvdd 02 01 #avdd ldo powered up 47 32 #analog inputs power up time is 6.4ms 7B 01 #reference will power up in 40ms when analog blocks are powered up 00 00 #page 0 3C 02 #minidsp a and d are independently powered up, PRB_P2 00 2C #page 0x2c 01 04 #adaptive filtering enabled for DAC 00 01 #page 1 0E 08 #left channel dac reconstruction filter output is routed to LOL 0F 08 #right channel dac reconstruction filter is routed to LOR 12 03 #lol not muted, gain=3dB 13 03 #lor not muted, gain=3dB 09 0C #HPL and HPR powered down, LOL and LOR powered up, MAL and MAR powered down 00 00 #Page 0 3F D4 #left and right dac channel powered up, left is left and right is right, soft stepping is 1 step per dac wclk 40 1C #auto mute at 100, left dac and right dac muted 00 00 #page 0 41 82 #left DAC digital volume = -63dB 42 82 #right DAC dig volume = -63dB 00 00 #page 0 40 10 #left dac and right dac not muted 00 00 #page 0 41 D6 #left DAC to 1101 0110 - this is a negative number, -42 which corresponds to -21dB 42 D6 #same for right DAC
此致!
MIR