Luna::AHI::IDevice::add_playback_data_callback

virtual usize add_playback_data_callback(const Function< playback_callback_t > &callback)=0

Adds a callback that will be called when audio data is required by the audio driver for playback.

Remark

See playback_callback_t for details.

Parameters

  • in callback

    The callback to add.

Return value

Returns one handle that can be used to remove the added callback.