public final class Sapa
extends java.lang.Object
implements com.samsung.android.sdk.SsdkInterface
Modifier and Type | Field and Description |
---|---|
static int |
SUPPORT_BOOST_MODE
Support for boost mode.
|
static int |
SUPPORT_CAPTURE_DEVICE
Support for capture device mode.
|
static int |
SUPPORT_DUMMY
Support for dummy mode.
|
static int |
SUPPORT_HIGH_LATENCY
Support for high latency start mode.
|
static int |
SUPPORT_IDLE_POWER_SAVING_MODE
Support for power saving in the idle
|
static int |
SUPPORT_IN_OUT_PORTS
Support for in/out ports
|
static int |
SUPPORT_INTERNAL_CLIENT
Support for internal client
|
static int |
SUPPORT_LOW_LATENCY
Support for low latency start mode.
|
static int |
SUPPORT_MID_LATENCY
Support for mid latency start mode.
|
static int |
SUPPORT_PLAYBACK_DEVICE
Support for playback device mode.
|
static int |
SUPPORT_SAMPLE_RATE_44100
Support for 44.1K sample rate.
|
static int |
SUPPORT_SAMPLE_RATE_48000
Support for 48K sample rate.
|
Constructor and Description |
---|
Sapa()
Creates a Sapa instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getVersionCode()
Get the version number of the Professional Audio package.
|
java.lang.String |
getVersionName()
Get the version name of the Professional Audio package.
|
void |
initialize(android.content.Context context)
Initialize an instance of the Professional Audio package.
|
boolean |
isFeatureEnabled(int type)
Check if the specified Professional Audio feature is available on the device.
|
public static final int SUPPORT_LOW_LATENCY
public static final int SUPPORT_MID_LATENCY
public static final int SUPPORT_HIGH_LATENCY
public static final int SUPPORT_CAPTURE_DEVICE
public static final int SUPPORT_DUMMY
public static final int SUPPORT_PLAYBACK_DEVICE
public static final int SUPPORT_BOOST_MODE
public static final int SUPPORT_SAMPLE_RATE_48000
public static final int SUPPORT_SAMPLE_RATE_44100
public static final int SUPPORT_IN_OUT_PORTS
public static final int SUPPORT_IDLE_POWER_SAVING_MODE
public static final int SUPPORT_INTERNAL_CLIENT
public int getVersionCode()
getVersionCode
in interface com.samsung.android.sdk.SsdkInterface
public java.lang.String getVersionName()
getVersionName
in interface com.samsung.android.sdk.SsdkInterface
public void initialize(android.content.Context context) throws com.samsung.android.sdk.SsdkUnsupportedException, java.lang.IllegalArgumentException
initialize
in interface com.samsung.android.sdk.SsdkInterface
context
- The Context for your application.com.samsung.android.sdk.SsdkUnsupportedException
- Thrown if the device is not Samsung, does not support the feature, or the SDK version is not matched.java.lang.IllegalArgumentException
- Thrown if the Context passed is not valid.java.lang.SecurityException
- Thrown if the permission is not set as "com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY"public boolean isFeatureEnabled(int type)
isFeatureEnabled
in interface com.samsung.android.sdk.SsdkInterface
type
- The Professional Audio feature.