audio_manager_check_autopause()

Check if a device switch should result in an autopause.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_check_autopause(unsigned int audioman_handle, audio_manager_device_t from, audio_manager_device_t to, bool *result)

Arguments:

audioman_handle

The audio manager handle on which to check.

from

The device that was active at the last point in time when the associated PCM channel was prepared.

to

The device that is now active.

result

true if the client should autopause, false otherwise.

Library:

libaudio_manager

Description:

The audio_manager_check_autopause() function indicates whether it is recommended that a client that has been forced to switch from one device to another should autopause.

Note that this function is intended for use by system components. Therefore, it is not suitable for all applications.

Returns:

EOK upon success, negative errno upon failure.