File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -355,11 +355,12 @@ class AudioPlayer : public AudioInfoSupport, public VolumeSupport {
355
355
// / Defines the wait time in ms if the target output is full
356
356
virtual void setDelayIfOutputFull (int delayMs) { delay_if_full = delayMs; }
357
357
358
+ // / Copies DEFAULT_BUFFER_SIZE (=1024 bytes) from the source to the decoder: Call this method in the loop.
358
359
virtual size_t copy () {
359
360
return copy (copier.bufferSize ());
360
361
}
361
362
362
- // / Call this method in the loop.
363
+ // / Copies the indicated number of bytes from the source to the decoder: Call this method in the loop.
363
364
virtual size_t copy (size_t bytes) {
364
365
size_t result = 0 ;
365
366
if (active) {
@@ -456,6 +457,11 @@ class AudioPlayer : public AudioInfoSupport, public VolumeSupport {
456
457
meta_out.resize (size);
457
458
}
458
459
460
+ // / Redefines the default copy size
461
+ void resizeCopier (int size){
462
+ copier.resize (size);
463
+ }
464
+
459
465
protected:
460
466
bool active = false ;
461
467
bool autonext = true ;
You can’t perform that action at this time.
0 commit comments