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
ca85aca0
Unverified
Commit
ca85aca0
authored
Dec 15, 2023
by
Wolle
Committed by
GitHub
Dec 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2s_zero_dma_buffer() in class initialization #626
parent
e8735f15
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/Audio.cpp
src/Audio.cpp
+4
-3
src/Audio.h
src/Audio.h
+2
-2
No files found.
src/Audio.cpp
View file @
ca85aca0
...
...
@@ -5,8 +5,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.7
x
* Updated on: Dec 1
3
.2023
* Version 3.0.7
y
* Updated on: Dec 1
5
.2023
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -230,7 +230,7 @@ Audio::Audio(bool internalDAC /* = false */, uint8_t channelEnabled /* = I2S_SLO
i2s_driver_install
((
i2s_port_t
)
m_i2s_num
,
&
m_i2s_config
,
0
,
NULL
);
m_f_forceMono
=
false
;
}
i2s_zero_dma_buffer
((
i2s_port_t
)
m_i2s_num
);
#endif // ESP_IDF_VERSION_MAJOR == 5
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
m_filter
[
i
].
a0
=
1
;
...
...
@@ -240,6 +240,7 @@ Audio::Audio(bool internalDAC /* = false */, uint8_t channelEnabled /* = I2S_SLO
m_filter
[
i
].
b2
=
0
;
}
computeLimit
();
// first init, vol = 21, vol_steps = 21
i2s_zero_dma_buffer
((
i2s_port_t
)
m_i2s_num
);
}
//---------------------------------------------------------------------------------------------------------------------
void
Audio
::
setBufsize
(
int
rambuf_sz
,
int
psrambuf_sz
)
{
...
...
src/Audio.h
View file @
ca85aca0
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.7
x
* Updated on: Dec 1
3
.2023
* Version 3.0.7
y
* Updated on: Dec 1
5
.2023
* Author: Wolle (schreibfaul1)
*/
...
...
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