The callback is passed a 'static reference to the audio buffer (here and here; also see Output and Duplex), which allows the reference to outlive the duration of the callback. The lifetime of the buffer should be appropriately constrained to the duration of the callback.
The callback is passed a
'static
reference to the audio buffer (here and here; also seeOutput
andDuplex
), which allows the reference to outlive the duration of the callback. The lifetime of the buffer should be appropriately constrained to the duration of the callback.