nn::dsp::CTR::GetHeadphoneStatus Function

Syntax

nn::Result GetHeadphoneStatus(
     bool * isConnected
);

Arguments

Name Description
out isConnected Returns true if connected.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Process was successful.
ResultNotInitialized The library is not initialized.

Description

Gets whether headphones are plugged in.

If the return value is other than ResultSuccess, the value of *isConnected will be undefined.

Revision History

2011/03/25
Added note about return values other than ResultSuccess.
2010/06/14
Initial version.

CONFIDENTIAL