diff options
Diffstat (limited to 'src/itf/IAndroidConfiguration.c')
-rw-r--r-- | src/itf/IAndroidConfiguration.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/itf/IAndroidConfiguration.c b/src/itf/IAndroidConfiguration.c index 9b2dd8e..bc0b666 100644 --- a/src/itf/IAndroidConfiguration.c +++ b/src/itf/IAndroidConfiguration.c @@ -115,19 +115,19 @@ static SLresult ValidatePlayerConfig(IAndroidConfiguration* iConfig) { switch (player->mAndroidObjType) { case AUDIOPLAYER_FROM_PCM_BUFFERQUEUE: - if (player->mObject.mState != SL_OBJECT_STATE_REALIZED) { - // Make sure the player has been realized. - result = SL_RESULT_PRECONDITIONS_VIOLATED; - SL_LOGE("Error creating routing object - Player not realized."); - } else { - android::AudioTrack* pAudioTrack = player->mAudioTrack.get(); - if (pAudioTrack == NULL) { - result = SL_RESULT_INTERNAL_ERROR; - SL_LOGE("Error creating routing object - Couldn't get AudioTrack."); - } else { - result = SL_RESULT_SUCCESS; - } - } +// if (player->mObject.mState != SL_OBJECT_STATE_REALIZED) { +// // Make sure the player has been realized. +// result = SL_RESULT_PRECONDITIONS_VIOLATED; +// SL_LOGE("Error creating routing object - Player not realized."); +// } else { +// android::AudioTrack* pAudioTrack = player->mAudioTrack.get(); +// if (pAudioTrack == NULL) { +// result = SL_RESULT_INTERNAL_ERROR; +// SL_LOGE("Error creating routing object - Couldn't get AudioTrack."); +// } else { + result = SL_RESULT_SUCCESS; +// } +// } break; default: |