File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class WAVHeader {
44
44
public:
45
45
WAVHeader () = default ;
46
46
47
- // / Call begin when header data is complete
47
+ // / Call begin when header data is complete to parse the data
48
48
void begin (){
49
49
LOGI (" WAVHeader::begin: %u" ,(unsigned ) len);
50
50
this ->data_pos = 0l ;
@@ -125,12 +125,12 @@ class WAVHeader {
125
125
len = 0 ;
126
126
}
127
127
128
- // / Resetss the len
128
+ // / Resets the len
129
129
void end (){
130
130
len = 0 ;
131
131
}
132
132
133
- // / Adds data to the 44 byte wav header data buffer
133
+ // / Adds data to the 44 byte wav header data buffer, returns the index at which the audio starts
134
134
int write (uint8_t * data, size_t data_len){
135
135
int write_len = min (data_len, 44 - len);
136
136
memmove (buffer, data+len, write_len);
You can’t perform that action at this time.
0 commit comments