Commit 2633a0da authored by schreibfaul1's avatar schreibfaul1

reboots when tryingwav without PSRAM # 631

parent 8ba32081
......@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.8
* Updated on: Dec 22.2023
* Version 3.0.8a
* Updated on: Dec 25.2023
* Author: Wolle (schreibfaul1)
*
*/
......@@ -181,10 +181,7 @@ Audio::Audio(bool internalDAC /* = false */, uint8_t channelEnabled /* = I2S_SLO
m_i2s_std_cfg.slot_cfg.slot_mask = I2S_STD_SLOT_BOTH; // I2S_STD_SLOT_LEFT, I2S_STD_SLOT_RIGHT
m_i2s_std_cfg.slot_cfg.ws_width = I2S_DATA_BIT_WIDTH_16BIT; // WS signal width (i.e. the number of bclk ticks that ws signal is high)
m_i2s_std_cfg.slot_cfg.ws_pol = false; // WS signal polarity, set true to enable high lever first
m_i2s_std_cfg.slot_cfg.bit_shift = false; // Set to enable bit shift in Philips mode
#ifdef CONFIG_IDF_TARGET_ESP32
m_i2s_std_cfg.slot_cfg.msb_right = true; // Set to place right channel data at the MSB in the FIFO
#endif
m_i2s_std_cfg.slot_cfg.bit_shift = true; // Set to enable bit shift in Philips mode
m_i2s_std_cfg.gpio_cfg.bclk = I2S_GPIO_UNUSED; // BCLK, Assignment in setPinout()
m_i2s_std_cfg.gpio_cfg.din = I2S_GPIO_UNUSED; // not used
m_i2s_std_cfg.gpio_cfg.dout = I2S_GPIO_UNUSED; // DOUT, Assignment in setPinout()
......
......@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.8
* Updated on: Dec 22.2023
* Version 3.0.8a
* Updated on: Dec 25.2023
* Author: Wolle (schreibfaul1)
*/
......@@ -111,7 +111,7 @@ protected:
size_t m_freeSpace = 0;
size_t m_writeSpace = 0;
size_t m_dataLength = 0;
size_t m_resBuffSizeRAM = 1600; // reserved buffspace, >= one mp3 frame
size_t m_resBuffSizeRAM = 2048; // reserved buffspace, >= one wav frame
size_t m_resBuffSizePSRAM = 4096 * 4; // reserved buffspace, >= one flac frame
size_t m_maxBlockSize = 1600;
uint8_t* m_buffer = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment