You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As one of the main entry points, the Muxer class provides function
voidexecuteUntil(Cycle targetCycle);
which runs SID to the specified target cycle and produces some sound samples on its way.
Things would become easier (e.g., the screen recorder implementation) if this function took the number of expected sound samples as an argument. In the screen recorder case, SID will have to produce 882 samples per frame for a sampling frequency of 44100Hz. The current implementation produces between 881 and 883, as the number is derived from the target cycle. This makes the current code error-prone to buffer underflows.
The text was updated successfully, but these errors were encountered:
As one of the main entry points, the Muxer class provides function
which runs SID to the specified target cycle and produces some sound samples on its way.
Things would become easier (e.g., the screen recorder implementation) if this function took the number of expected sound samples as an argument. In the screen recorder case, SID will have to produce 882 samples per frame for a sampling frequency of 44100Hz. The current implementation produces between 881 and 883, as the number is derived from the target cycle. This makes the current code error-prone to buffer underflows.
The text was updated successfully, but these errors were encountered: