Home
last modified time | relevance | path

Searched refs:fileDes_ (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/multimedia/player_framework/frameworks/native/audio_haptic/
H A Daudio_haptic_sound_low_latency_impl.cpp77 if (fileDes_ != -1) { in OpenAudioUri()
78 (void)close(fileDes_); in OpenAudioUri()
79 fileDes_ = -1; in OpenAudioUri()
86 fileDes_ = dup(fd); in OpenAudioUri()
87 MEDIA_LOGI("fileDes_ == %{public}d", fileDes_); in OpenAudioUri()
95 fileDes_ = open(realPathStr.c_str(), O_RDONLY); in OpenAudioUri()
96 if (fileDes_ == -1) { in OpenAudioUri()
120 std::string uri = "fd://" + std::to_string(fileDes_); in PrepareSound()
205 if (fileDes_ != -1) { in ReleaseSoundPoolPlayer()
206 (void)close(fileDes_); in ReleaseSoundPoolPlayer()
[all …]
H A Daudio_haptic_sound_normal_impl.cpp86 fileDes_ = dup(fd); in ResetAVPlayer()
87 MEDIA_LOGI("fileDes_ == %{public}d", fileDes_); in ResetAVPlayer()
93 if (fileDes_ != -1) { in ResetAVPlayer()
94 (void)close(fileDes_); in ResetAVPlayer()
95 fileDes_ = -1; in ResetAVPlayer()
97 fileDes_ = open(realPathStr.c_str(), O_RDONLY); in ResetAVPlayer()
98 …CHECK_AND_RETURN_RET_LOG(fileDes_ != -1, MSERR_OPEN_FILE_FAILED, "Prepare: Failed to open uri for … in ResetAVPlayer()
100 int32_t ret = avPlayer_->SetSource(fileDes_); in ResetAVPlayer()
193 if (fileDes_ != -1) { in ReleaseAVPlayer()
194 (void)close(fileDes_); in ReleaseAVPlayer()
[all …]
H A Daudio_haptic_sound_low_latency_impl.h70 int32_t fileDes_ = -1; variable
H A Daudio_haptic_sound_normal_impl.h68 int32_t fileDes_ = -1; variable