Skip to content

Commit bfc07d8

Browse files
committed
WAVAudioInfo comments
1 parent 3c2a54a commit bfc07d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AudioCodecs/CodecWAV.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class WAVHeader {
4444
public:
4545
WAVHeader() = default;
4646

47-
/// Call begin when header data is complete
47+
/// Call begin when header data is complete to parse the data
4848
void begin(){
4949
LOGI("WAVHeader::begin: %u",(unsigned) len);
5050
this->data_pos = 0l;
@@ -125,12 +125,12 @@ class WAVHeader {
125125
len = 0;
126126
}
127127

128-
/// Resetss the len
128+
/// Resets the len
129129
void end(){
130130
len = 0;
131131
}
132132

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
134134
int write(uint8_t* data, size_t data_len){
135135
int write_len = min(data_len, 44 - len);
136136
memmove(buffer, data+len, write_len);

0 commit comments

Comments
 (0)