A Microsoft platform for building and publishing apps for Windows devices.
[BUG]: AudioGraph with FileInputNode/FrameInputNode -> FrameOutputNode completes quantums as fast as possible.
It just dumps the FileInputNode on my FrameOutputNode, instead feeding it in at the correct rate. The quantum length is less than 1ms when we would expect 10ms to get the correct sample rate. To get the quantums to happen every 10ms we can add a AudioFrameOutputNode as follows:
fileInputNode.AddOutgoingConnection(frameOutputNode);
fileInputNode.AddOutgoingConnection(deviceOutputNode);
deviceOutputNode.Stop();
However, if I do this I run into another bug https://learn.microsoft.com/answers/questions/658616/bug-audiographcreatedeviceoutputnodeasync-fails-if.html.
[The following appears to have been fixed] I have also ran into another bug, but this was hardware dependant. This time with deviceInputNode -> frameOutputNode. For a specific render device if the sample rate is 44100 Hz, then the we get a quantum size of 448 every 10ms (a sample rate of 44800 Hz). If the sample rate is anything else then the quantum's are spaced appropriately. Picking a different primary render device can make the problem go away.