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
Copy file name to clipboardExpand all lines: ColorChord.NET/Sources/WASAPILoopback.cs
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ public void Start()
144
144
if(IsErrorAndOut(ErrorCode,"Could not get device timing info.")){return;}
145
145
146
146
ErrorCode=this.Client.GetCurrentSharedModeEnginePeriod(outIntPtrMixFormatPtr2,outuintFramesPerBatch);// TODO: Automatically scale this based on the framerate of the outputs
147
-
if(IsErrorAndOut(ErrorCode,"Could not get engine periodicity info.")){return;}
147
+
if(IsErrorAndOut(ErrorCode,"Could not get current engine periodicity info.")){return;}
148
148
149
149
// Check if we can get PCM data directly (default is usually float)
if(IsErrorAndOut(ErrorCode,"Could not get detailed engine periodicity info.")){return;}
189
+
Log.Debug($"WASAPI engine periodicities: default = {DefaultPeriodFrames}, fundamental = {FundamentalPeriodFrames}, min = {MinimumPeriodFrames}, max = {MaximumPeriodFrames} frames.");
190
+
182
191
Log.Info($"Chosen audio format is {this.MixFormat.Format}{WaveFormatGUIDs.GetNameFromGUID(this.MixFormat.SubFormat)}, {this.MixFormat.ChannelCount} channel, {this.MixFormat.SampleRate}Hz sample rate, {this.MixFormat.BitsPerSample}b per sample.");
183
192
Log.Info($"Default transaction period is {DefaultInterval} ticks, minimum is {MinimumInterval} ticks. Current mode is {FramesPerBatch} frames per dispatch.");
0 commit comments