Quantcast
Channel: Questions in topic: "measure"
Viewing all articles
Browse latest Browse all 91

Detect when audio thread is taking too long

$
0
0
I'm working with procedural audio generation using OnAudioFilterRead(). When this method is implemented you can see a VU meter along with a measurement of processing time. From the docs it reads "The process time of the filter is also measured and the spent milliseconds will show up next to the VU Meter (it turns red if the filter is taking up too much time, so the mixer will starve audio data)" I want to use this measured time to detect slow downs and use cheaper methods when necessary. However, nothing seems to indicate how to read this measured time or even how to measure time manually inside the audio thread. Either solution works for me, any help to point me in the right direction would be much appreciated!

Viewing all articles
Browse latest Browse all 91

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>