* return r;
* }
*
- * __pAudioRouteManager = AudioRouteManager::GetInstance();
- * if (!__pAudioRouteManager)
- * {
- * return E_OUT_OF_MEMORY;
- * }
+ * __pAudioRouteManager = AudioRouteManager::GetInstance();
+ * if (!__pAudioRouteManager)
+ * {
+ * return E_OUT_OF_MEMORY;
+ * }
*
* r = __player.OpenFile(filePath, false);
* if (IsFailed(r))
* result
* RouteManagerSample::Play(void)
* {
- * result r = E_SUCCESS;
- * r = __player.Play();
- * return r;
+ * result r = E_SUCCESS;
+ * r = __player.Play();
+ * return r;
* }
*
* result
* RouteManagerSample::Route(void)
* {
- * result r = E_SUCCESS;
- * IList *pAudioDeviceList = null;
- * int count;
+ * result r = E_SUCCESS;
+ * IList *pAudioDeviceList = null;
+ * int count;
*
* pAudioDeviceList = __pAudioRouteManager->GetAvailableAudioRouteListN();
* count = pAudioDeviceList->GetCount();
* if (count)
* {
- * AudioRouteInfo *audioDevice = (AudioRouteInfo *) pAudioDeviceList->GetAt(0);
- * r = __pAudioRouteManager->SetActiveAudioRoute(*audioDevice);
- * if (IsFailed(r))
- * {
- * return r;
- * }
- * }
- * pAudioDeviceList->RemoveAll();
- * pAudioDeviceList = null;
+ * AudioRouteInfo *audioDevice = (AudioRouteInfo *) pAudioDeviceList->GetAt(0);
+ * r = __pAudioRouteManager->SetActiveAudioRoute(*audioDevice);
+ * if (IsFailed(r))
+ * {
+ * return r;
+ * }
+ * }
+ * pAudioDeviceList->RemoveAll();
+ * pAudioDeviceList = null;
*
- * return r;
+ * return r;
* }
*
*
state = GetState();
SysTryReturn(
- NID_MEDIA, state == RECORDER_STATE_OPENED || state == RECORDER_STATE_STOPPED
+ NID_MEDIA, state == RECORDER_STATE_OPENED || state == RECORDER_STATE_STOPPED || state == RECORDER_STATE_STOPPING
|| state == RECORDER_STATE_ENDOF_FILE || state == RECORDER_STATE_ERROR
, E_INVALID_STATE, E_INVALID_STATE, "[E_INVALID_STATE] AudioRecorder is in an invalid state. AudioRecorder state is %d.",
state);
state = GetState();
SysTryReturn(
- NID_MEDIA, state == RECORDER_STATE_OPENED || state == RECORDER_STATE_STOPPED
+ NID_MEDIA, state == RECORDER_STATE_OPENED || state == RECORDER_STATE_STOPPED || state == RECORDER_STATE_STOPPING
|| state == RECORDER_STATE_ENDOF_FILE || state == RECORDER_STATE_ERROR
, E_INVALID_STATE, E_INVALID_STATE, "[E_INVALID_STATE] VideoRecorder is in an invalid state:%d", state);