-
Notifications
You must be signed in to change notification settings - Fork 0
Monitoring
Axwabo edited this page Sep 3, 2025
·
2 revisions
Implement the IAudioPacketMonitor interface to monitor the output of an audio player
It defines two methods:
-
OnRead(ReadOnlySpan<float>)- when at least 1 sample was read -
OnEmpty()- when no samples were read
The buffer's length is the amount of samples that were read, you can operate on the whole span.
Output monitoring is independent of the sample provider. It can be used e.g. for visualizing audio
The monitor is not affected by MasterAmplification
Note
The ReadOnlySpan struct can be found in mscorlib.dll (server assemblies).
Add <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences> to your csproj and reference it.
- π Home
- πΌ Digital Audio Basics
- π Examples
- π¦ Supported Formats
- β¬οΈ Migrating from v1
- π AudioPlayer
- πΎ Short Clips
- πΏ Streaming From Disk
- ποΈ Speaker Groups
- π Sample Providers
- β»οΈ Pooling
- π© SendEngines
- π§ Personalizing Speakers
- π Monitoring Output
- βοΈ AudioQueue
- πΆ Mixer
- ποΈ ProcessorChain
Caution
v1 will be out of support soon.