* @exception E_INVALID_ARG A specified input parameter is invalid.
* @exception E_UNSUPPORTED_FORMAT The specified audio sample type is not supported.
* @see Unprepare()
+ * @remarks This method returns E_IVALID_STATE when there is no memory left in the device
*/
result Prepare(AudioSampleType audioSampleType, AudioChannelType audioChannelType, int audioSampleRate);
* @exception E_INVALID_ARG A specified input parameter is invalid.
* @exception E_UNSUPPORTED_FORMAT The specified audio sample type is not supported.
* @see Unprepare()
+ * @remarks This method returns E_IVALID_STATE when there is no memory left in the device
*/
result Prepare(AudioStreamType audioStreamType, AudioSampleType audioSampleType, AudioChannelType audioChannelType, int audioSampleRate);
* @exception E_SYSTEM A system error has occurred.
* @remarks The item(s) of the specified @c toneList must be an instance(s) of Tone.
* @see Close()
+ * @remarks This method returns E_IVALID_STATE when there is no memory left in the device
*/
result Open(const Tizen::Base::Collection::IList& toneList, int repeatCount = 1);
* @exception E_OUT_OF_RANGE The count is out of range.
* @exception E_SYSTEM A system error has occurred.
* @see Close()
+ * @remarks This method returns E_IVALID_STATE when there is no memory left in the device
*/
result Open(const Tizen::Media::Tone& tone, int repeatCount = 1);
ret = audio_out_create(audioSampleRate, _AudioManagerConvert::ConvertChannelType(audioChannelType), _AudioManagerConvert::ConvertSampleType(audioSampleType), SOUND_TYPE_MEDIA, &__audioOutHandle);
r = MapExceptionToResult(ret);
+ SysTryCatch(NID_MEDIA, r != E_INVALID_STATE, , r, "[%s] The device has moved to invalid state as it is out of memory : 0x%x", GetErrorMessage(r), ret);
SysTryCatch(NID_MEDIA, r == E_SUCCESS, , r, "[%s] Failed to perform audio_out_create operation with error code : 0x%x", GetErrorMessage(r), ret);
ret = audio_out_set_interrupted_cb(__audioOutHandle, AudioIoInterrupted, this);
//Initilaize audio_out Device for raw audio out playback
ret = audio_out_create(SAMPLING_RATE, AUDIO_CHANNEL_MONO, AUDIO_SAMPLE_TYPE_S16_LE, _AudioManagerConvert::ConvertAudioStreamType2SoundType(__audioStreamtype), &__audioOutHandle);
r = MapExceptionToResult(ret);
+ SysTryCatch(NID_MEDIA, r != E_INVALID_STATE, , r, "[%s] The device has moved to invalid state as it is out of memory : 0x%x", GetErrorMessage(r), ret);
SysTryCatch(NID_MEDIA, r == E_SUCCESS , , r, "[%s] Failed to perform audio_out_create operation with 0x%x", GetErrorMessage(r), ret);
ret = audio_out_set_interrupted_cb(__audioOutHandle, AudioIoInterrupted, this);
__repeatCount = repeatCount;
//Initlaize audio-out Device for raw audio out playback
ret = audio_out_create(SAMPLING_RATE, AUDIO_CHANNEL_MONO, AUDIO_SAMPLE_TYPE_S16_LE, _AudioManagerConvert::ConvertAudioStreamType2SoundType(__audioStreamtype), &__audioOutHandle);
+ SysTryCatch(NID_MEDIA, r != E_INVALID_STATE, , r, "[%s] The device has moved to invalid state as it is out of memory : 0x%x", GetErrorMessage(r), ret);
r = MapExceptionToResult(ret);
SysTryCatch(NID_MEDIA, r == E_SUCCESS , , r, "[%s] Failed to perform audio_out_create operation with 0x%x", GetErrorMessage(r), ret);