Skip to content

Commit 0508c13

Browse files
committed
clarify StreamCopy documentation
1 parent 7c829d4 commit 0508c13

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/AudioTools/CoreAudio/StreamCopy.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ class StreamCopyT {
8888
return to;
8989
}
9090

91-
/// copies the data from the source to the destination - the result is in bytes
91+
/// copies the data from the source to the destination and returns the processed number of bytes
9292
inline size_t copy() {
9393
return copyBytes(buffer_size);
9494
}
9595

96-
/// copies the inicated number of bytes from the source to the destination - the result is in bytes
96+
/// copies the inicated number of bytes from the source to the destination and returns the processed number of bytes
9797
inline size_t copyBytes(size_t bytes){
9898
LOGD("copy %d bytes %s", (int) bytes, log_name);
9999
if (!active) return 0;
@@ -198,7 +198,7 @@ class StreamCopyT {
198198
delay_on_no_data = delayMs;
199199
}
200200

201-
/// Copies pages * buffersize samples
201+
/// Copies pages * buffersize samples: returns the processed number of bytes
202202
size_t copyN(size_t pages){
203203
if (!active) return 0;
204204
size_t total=0;
@@ -215,7 +215,7 @@ class StreamCopyT {
215215
return copyN(pages);
216216
}
217217

218-
/// copies all data - returns true if we copied anything
218+
/// copies all data - returns the number of processed bytes
219219
size_t copyAll(int retryCount=5, int retryWaitMs=200){
220220
TRACED();
221221
if (!active) return 0;
@@ -465,7 +465,7 @@ class StreamCopy : public StreamCopyT<uint8_t> {
465465
TRACED();
466466
}
467467

468-
/// copies a buffer length of data and applies the converter
468+
/// copies the data from the source to the destination and applies the converter - the result is the processed number of bytes
469469
size_t copy(BaseConverter &converter) {
470470
size_t result = available();
471471
size_t delayCount = 0;
@@ -495,7 +495,7 @@ class StreamCopy : public StreamCopyT<uint8_t> {
495495
return result;
496496
}
497497

498-
/// Copies all bytes from the input to the output
498+
/// copies the data from the source to the destination and returns the processed number of bytes
499499
size_t copy() {
500500
return StreamCopyT<uint8_t>::copy();
501501
}

0 commit comments

Comments
 (0)