-
Notifications
You must be signed in to change notification settings - Fork 2
AudYoFlo: Behavior: Dynamic Birth and Death of Devices
In many cases, the audio engine must be able to handle incoming and outgoing data from dynamic input/output streams. For example, a phone call is a good example for a dynamic input/output stream: as long as nobody calls, there is no incoming and outgoing data. However, if a call starts to be connected, the corresponding input/output streams should be integrated into the overall processing scheme as soon as the data starts to flow. And also, multiple input output streams should be able to be handled in parallel!
In these kinds of cases, a good approach is to let devices of a technology be born and killed given signals from a specific underlying technology. Often, the signals come in asynchronously - hence, the information that requires the device to be born comes in at a thread other than the maion tread of ayf.
In this chapter, the typical procedures to integrate new born devices into the signal processing chain will be explained in detail in the following, starting from the very first indication to report a new stream all the way to the last indication that indicates that the device has been killed and is not longer present in the signal processing main functional graph.