mirror of https://github.com/stella-emu/stella.git
Add a log message for audio buffer overflow messages.
This commit is contained in:
parent
f01553bdc7
commit
c3766021d8
|
@ -99,7 +99,10 @@ Int16* AudioQueue::enqueue(Int16* fragment)
|
|||
myFragmentQueue.at(fragmentIndex) = fragment;
|
||||
|
||||
if (mySize < capacity) mySize++;
|
||||
else myNextFragment = (myNextFragment + 1) % capacity;
|
||||
else {
|
||||
myNextFragment = (myNextFragment + 1) % capacity;
|
||||
(cerr << "audio buffer overflow\n").flush();
|
||||
}
|
||||
|
||||
return newFragment;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue