Potential Floating Point Error with null audio?
Posted: Sun Oct 04, 2009 12:56 am
Hi Mike,
Hope you've been well. I have encountered a "crackle/pop" bug at the top of cues which I am fairly sure is caused by a CPU spike. The bug manifests when creating an audio cue made up of several audio subcues, some of which are streaming silence at the top. In my case, I use this technique when creating an effect or music mix which is assigned to various speaker groups in house, creating a discrete "surround" type mix. To keep things in sync (a dry signal in one place, for instance, with its reverb tail in a separate file playing in another), it doesn't work as dependably to delay the subcue files...they don't seem to start sample accurate unless they start at zero.
I am not sure if it was introduced in 10.6.1. I upgraded from 10.5.x before this show (skipped 10.6.0) and didn't ever experience this problem before...and I have created many designs in the past using this technique, so I don't think it has always been there.
The issue doesn't seem to be related to any other issues--I switched out hardware, etc., in the diagnosis process. I've been a part of several test groups with DAW software and plugins, and this kind of runaway CPU error is encountered by almost every developer at one time or another (streaming "absolute zero" audio causing some sort of runaway loop in the floating point system, therefore creating a CPU spike). If I remember correctly, the "cheap" fix is to add a super-low level DC offset somewhere in the mix engine, so that there is never a "true zero" stream. I know just enough about software development to be dangerous and worthless, so hopefully my report will allow you to better evaluate what's happening.
At any rate, I'm pretty sure I've eliminated any other potential cause...working around the problem has involved going into the offending cues, and delaying the cue start/cue delay by equal amounts so that all these "zero files" don't start streaming at once. That fixes the "pop" at the top of the cue...
Best regards,
Bruce
Hope you've been well. I have encountered a "crackle/pop" bug at the top of cues which I am fairly sure is caused by a CPU spike. The bug manifests when creating an audio cue made up of several audio subcues, some of which are streaming silence at the top. In my case, I use this technique when creating an effect or music mix which is assigned to various speaker groups in house, creating a discrete "surround" type mix. To keep things in sync (a dry signal in one place, for instance, with its reverb tail in a separate file playing in another), it doesn't work as dependably to delay the subcue files...they don't seem to start sample accurate unless they start at zero.
I am not sure if it was introduced in 10.6.1. I upgraded from 10.5.x before this show (skipped 10.6.0) and didn't ever experience this problem before...and I have created many designs in the past using this technique, so I don't think it has always been there.
The issue doesn't seem to be related to any other issues--I switched out hardware, etc., in the diagnosis process. I've been a part of several test groups with DAW software and plugins, and this kind of runaway CPU error is encountered by almost every developer at one time or another (streaming "absolute zero" audio causing some sort of runaway loop in the floating point system, therefore creating a CPU spike). If I remember correctly, the "cheap" fix is to add a super-low level DC offset somewhere in the mix engine, so that there is never a "true zero" stream. I know just enough about software development to be dangerous and worthless, so hopefully my report will allow you to better evaluate what's happening.
At any rate, I'm pretty sure I've eliminated any other potential cause...working around the problem has involved going into the offending cues, and delaying the cue start/cue delay by equal amounts so that all these "zero files" don't start streaming at once. That fixes the "pop" at the top of the cue...
Best regards,
Bruce