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
57b3bb7d
Unverified
Commit
57b3bb7d
authored
Nov 10, 2021
by
Wolle
Committed by
GitHub
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access to audiodata for external use
parent
10e7eb6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
src/Audio.cpp
src/Audio.cpp
+9
-0
src/Audio.h
src/Audio.h
+2
-1
No files found.
src/Audio.cpp
View file @
57b3bb7d
...
...
@@ -3797,6 +3797,15 @@ int Audio::sendBytes(uint8_t* data, size_t len) {
}
}
compute_audioCurrentTime
(
bytesDecoded
);
if
(
audio_process_extern
){
bool
continueI2S
=
false
;
audio_process_extern
(
m_outBuff
,
m_validSamples
,
&
continueI2S
);
if
(
!
continueI2S
){
return
bytesDecoded
;
}
}
while
(
m_validSamples
)
{
playChunk
();
}
...
...
src/Audio.h
View file @
57b3bb7d
...
...
@@ -2,7 +2,7 @@
* Audio.h
*
* Created on: Oct 26,2018
* Updated on:
Oct 27
,2021
* Updated on:
Nov 10
,2021
* Author: Wolle (schreibfaul1)
*/
...
...
@@ -77,6 +77,7 @@ extern __attribute__((weak)) void audio_icydescription(const char*);
extern
__attribute__
((
weak
))
void
audio_lasthost
(
const
char
*
);
extern
__attribute__
((
weak
))
void
audio_eof_speech
(
const
char
*
);
extern
__attribute__
((
weak
))
void
audio_eof_stream
(
const
char
*
);
// The webstream comes to an end
extern
__attribute__
((
weak
))
void
audio_process_extern
(
int16_t
*
buff
,
uint16_t
len
,
bool
*
continueI2S
);
// record audiodata or send via BT
//----------------------------------------------------------------------------------------------------------------------
...
...
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