nn::mic::CTR::SetAmp Function

Syntax

Result SetAmp(
     bool enable
);

Parameters

Name Description
in enable If set to true, turns microphone power on. If set to false, turns microphone power off.

Return Values

Returns the result of the operation.
Value Description
Result::IsSuccess Process succeeded.

Description

Sets the ON/OFF setting for power to the microphone.

The microphone is forcibly muted when it is turned on or recovers from Sleep Mode because microphone input is unstable for the first second.

For the silence values for each sampling type, see nn::mic::CTR::SAMPLING_TYPE_8BIT_SILENT_DATA, nn::mic::CTR::SAMPLING_TYPE_16BIT_SILENT_DATA, nn::mic::CTR::SAMPLING_TYPE_SIGNED_8BIT_SILENT_DATA and nn::mic::CTR::SAMPLING_TYPE_SIGNED_16BIT_SILENT_DATA.

Revision History

2010/12/18
Revised the description of the return values.
2010/07/15
Added description of muted period when turned on.
2010/01/07
Initial version.

CONFIDENTIAL