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
832791c3
Unverified
Commit
832791c3
authored
Jan 02, 2024
by
Wolle
Committed by
GitHub
Jan 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix copy/paste err
parent
a42002e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Audio.cpp
src/Audio.cpp
+1
-1
No files found.
src/Audio.cpp
View file @
832791c3
...
@@ -4811,7 +4811,7 @@ bool Audio::playSample(int16_t sample[2]) {
...
@@ -4811,7 +4811,7 @@ bool Audio::playSample(int16_t sample[2]) {
esp_err_t
err
=
i2s_write
((
i2s_port_t
)
m_i2s_num
,
(
const
char
*
)
&
s32
,
sizeof
(
uint32_t
),
&
m_i2s_bytesWritten
,
0
);
// no wait
esp_err_t
err
=
i2s_write
((
i2s_port_t
)
m_i2s_num
,
(
const
char
*
)
&
s32
,
sizeof
(
uint32_t
),
&
m_i2s_bytesWritten
,
0
);
// no wait
#endif
#endif
if
(
err
!=
ESP_OK
)
{
if
(
err
!=
ESP_OK
)
{
if
(
err
/
home
/
wolle
/
Arduino
/
AudioI2S
/
src
/
Audio
.
h
!=
263
)
{
log_e
(
"ESP32 Errorcode: %i"
,
err
);}
if
(
err
!=
263
)
{
log_e
(
"ESP32 Errorcode: %i"
,
err
);}
return
false
;
return
false
;
}
}
if
(
m_i2s_bytesWritten
<
4
)
{
// no more space in dma buffer --> break and try it later
if
(
m_i2s_bytesWritten
<
4
)
{
// no more space in dma buffer --> break and try it later
...
...
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