Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
2633a0da
Commit
2633a0da
authored
Dec 25, 2023
by
schreibfaul1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reboots when tryingwav without PSRAM # 631
parent
8ba32081
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
src/Audio.cpp
src/Audio.cpp
+3
-6
src/Audio.h
src/Audio.h
+3
-3
No files found.
src/Audio.cpp
View file @
2633a0da
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.8
* Updated on: Dec 2
2
.2023
* Version 3.0.8
a
* Updated on: Dec 2
5
.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()
...
...
src/Audio.h
View file @
2633a0da
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.8
* Updated on: Dec 2
2
.2023
* Version 3.0.8
a
* Updated on: Dec 2
5
.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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment