Skip to content

Commit 5341c7b

Browse files
committed
2 parents 6179ac0 + e7711ab commit 5341c7b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/AudioTools/CoreAudio/AudioI2S/I2SESP32V1.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ class I2SDriverESP32V1 {
351351

352352
protected:
353353
i2s_pdm_tx_slot_config_t getTxSlotConfig(I2SConfigESP32V1 &cfg) {
354-
return I2S_PDM_TX_SLOT_DEFAULT_CONFIG(
354+
return I2S_PDM_TX_SLOT_DAC_DEFAULT_CONFIG(
355355
(i2s_data_bit_width_t)cfg.bits_per_sample,
356356
(i2s_slot_mode_t)cfg.channels);
357357
}
@@ -363,7 +363,7 @@ class I2SDriverESP32V1 {
363363
}
364364

365365
i2s_pdm_tx_clk_config_t getTxClockConfig(I2SConfigESP32V1 &cfg) {
366-
return I2S_PDM_TX_CLK_DEFAULT_CONFIG((uint32_t)cfg.sample_rate);
366+
return I2S_PDM_TX_CLK_DAC_DEFAULT_CONFIG((uint32_t)cfg.sample_rate);
367367
}
368368

369369
bool startTX(I2SConfigESP32V1 &cfg, i2s_chan_handle_t &tx_chan, int txPin) {
@@ -603,4 +603,4 @@ using I2SDriver = I2SDriverESP32V1;
603603

604604
} // namespace audio_tools
605605

606-
#endif
606+
#endif

src/AudioTools/CoreAudio/VolumeStream.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ class VolumeStream : public ModifyingStream, public VolumeSupport {
278278
cfg1.sample_rate = cfg.sample_rate;
279279
cfg1.bits_per_sample = cfg.bits_per_sample;
280280
// keep volume which might habe been defined befor calling begin
281-
cfg1.volume = info.volume;
281+
cfg1.volume = info.volume;
282+
cfg1.allow_boost = info.allow_boost;
282283
return cfg1;
283284
}
284285

0 commit comments

Comments
 (0)