Home
last modified time | relevance | path

Searched refs:soundId (Results 1 - 10 of 10) sorted by relevance

/foundation/multimedia/player_framework/frameworks/js/soundpool/include/
H A Dsoundpool_callback_napi.h42 void SendLoadCompletedCallback(int32_t soundId);
46 void OnLoadCompleted(int32_t soundId) override;
/foundation/multimedia/player_framework/test/unittest/soundpool_test/src/
H A Dsoundpool_mock.cpp28 void SoundPoolCallbackTest::OnLoadCompleted(int32_t soundId) in OnLoadCompleted() argument
30 cout << "OnLoadCompleted soundId:" << soundId << ", haveLoadedSoundNumInner_: "<< haveLoadedSoundNumInner_ << endl; in OnLoadCompleted()
H A Dsoundpool_unit_test.cpp47 for (auto soundId : soundIDs_) { in TearDown()
48 if (soundId != 0) { in TearDown()
49 soundId = 0; in TearDown()
247 cout << "Get soundId failed, please try to get soundId: " << soundIDs_[loadNum_] << endl; in HWTEST_F()
395 cout << "Get soundId failed, please try to get soundId: " << soundIDs_[loadNum_] << endl; in HWTEST_F()
495 // test UnLoad a invalid-path return soundId in HWTEST_F()
622 cout << "Get soundId failed, please try to get soundId in HWTEST_F()
[all...]
/foundation/multimedia/player_framework/frameworks/js/soundpool/src/
H A Dsoundpool_callback_napi.cpp34 void SoundPoolCallBackNapi::OnLoadCompleted(int32_t soundId) in OnLoadCompleted() argument
36 MEDIA_LOGI("OnLoadCompleted recived soundId:%{public}d", soundId); in OnLoadCompleted()
37 SendLoadCompletedCallback(soundId); in OnLoadCompleted()
102 void SoundPoolCallBackNapi::SendLoadCompletedCallback(int32_t soundId) in SendLoadCompletedCallback() argument
114 cb->loadSoundId = soundId; in SendLoadCompletedCallback()
H A Dsoundpool_napi.cpp195 int32_t soundId; in JsLoad()
197 soundId = asyncCtx->soundPool_->Load(asyncCtx->fd_, asyncCtx->offset_, asyncCtx->length_); in JsLoad()
199 soundId = asyncCtx->soundPool_->Load(asyncCtx->url_); in JsLoad()
201 if (soundId < 0) { in JsLoad()
204 asyncCtx->JsResult = std::make_unique<MediaJsResultInt>(soundId); in JsLoad()
206 MEDIA_LOGI("The js thread of load finishes execution and returns, soundId: %{public}d", soundId); in JsLoad()
745 (asyncCtx->SoundPoolAsyncSignError(MSERR_INVALID_VAL, "getplaysoundId", "soundId"), MSERR_INVALID_VAL)); in ParserPlayOptionFromJs()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolplaystop_fuzzer/
H A Dsoundpoolplaystop_fuzzer.cpp72 cout << "Get soundId failed, please try to get soundId." << endl; in FuzzSoundPoolPlay()
74 int32_t soundId = *reinterpret_cast<int32_t *>(data); in FuzzSoundPoolPlay() local
75 TestSoundPool::Play(soundId, playParameters); in FuzzSoundPoolPlay()
127 cout << "Get soundId failed, please try to get soundId." << endl; in FuzzSoundPoolStop()
/foundation/multimedia/player_framework/interfaces/inner_api/native/soundpool/include/
H A Disoundpool.h178 * @param result used to listen for loaded soundId event
182 virtual void OnLoadCompleted(int32_t soundId) = 0;
/foundation/multimedia/player_framework/frameworks/native/audio_haptic/
H A Daudio_haptic_sound_low_latency_impl.h83 void OnLoadCompleted(int32_t soundId) override;
H A Daudio_haptic_sound_low_latency_impl.cpp310 void AHSoundLowLatencyCallback::OnLoadCompleted(int32_t soundId) in OnLoadCompleted() argument
/foundation/multimedia/player_framework/test/unittest/soundpool_test/include/
H A Dsoundpool_mock.h94 void OnLoadCompleted(int32_t soundId) override;

Completed in 6 milliseconds