Home
last modified time | relevance | path

Searched refs:soundID (Results 1 - 20 of 20) sorted by relevance

/foundation/multimedia/player_framework/frameworks/native/soundpool/
H A Dsound_id_manager.cpp79 int32_t soundID; in Load() local
98 soundID = nextSoundID_; in Load()
99 auto soundParser = std::make_shared<SoundParser>(soundID, url); in Load()
101 soundParsers_.emplace(soundID, soundParser); in Load()
103 DoLoad(soundID); in Load()
104 return soundID; in Load()
109 int32_t soundID; in Load() local
120 soundID = nextSoundID_; in Load()
121 auto soundParser = std::make_shared<SoundParser>(soundID, fd, offset, length); in Load()
123 soundParsers_.emplace(soundID, soundParse in Load()
129 DoLoad(int32_t soundID) DoLoad() argument
165 const int32_t soundID = soundIDs_.front(); DoParser() local
192 Unload(int32_t soundID) Unload() argument
[all...]
H A Dsound_id_manager.h36 int32_t DoLoad(int32_t soundID);
39 int32_t Unload(int32_t soundID);
43 std::shared_ptr<SoundParser> FindSoundParser(int32_t soundID) const;
H A Dstream_id_manager.cpp93 int32_t soundID = soundParser->GetSoundID(); in Play() local
94 int32_t streamID = GetFreshStreamID(soundID, playParameters); in Play()
109 soundID, streamID); in Play()
123 MEDIA_LOGI("StreamIDManager::SetPlay start soundID:%{public}d, streamID:%{public}d", soundID, streamID); in Play()
124 SetPlay(soundID, streamID, playParameters); in Play()
128 int32_t StreamIDManager::SetPlay(const int32_t soundID, const int32_t streamID, const PlayParams playParameters) in SetPlay() argument
301 int32_t StreamIDManager::GetStreamIDBySoundID(const int32_t soundID) in GetStreamIDBySoundID() argument
304 return GetFreshStreamID(soundID, playParameters); in GetStreamIDBySoundID()
368 int32_t StreamIDManager::GetFreshStreamID(const int32_t soundID, PlayParam argument
[all...]
H A Dstream_id_manager.h39 int32_t GetStreamIDBySoundID(const int32_t soundID);
59 void OnLoadCompleted(int32_t soundID) in OnLoadCompleted() argument
91 int32_t SetPlay(const int32_t soundID, const int32_t streamID, const PlayParams playParameters);
94 int32_t GetFreshStreamID(const int32_t soundID, PlayParams playParameters);
H A Dsoundpool.cpp102 int32_t SoundPool::Play(int32_t soundID, PlayParams playParameters) in Play() argument
106 MEDIA_LOGI("SoundPool::Play soundID::%{public}d ,priority::%{public}d", soundID, playParameters.priority); in Play()
109 std::shared_ptr<SoundParser> soundParser = soundIDManager_->FindSoundParser(soundID); in Play()
187 int32_t SoundPool::Unload(int32_t soundID) in Unload() argument
191 MEDIA_LOGI("SoundPool::Unload soundID::%{public}d", soundID); in Unload()
194 int32_t streamID = streamIdManager_->GetStreamIDBySoundID(soundID); in Unload()
200 return soundIDManager_->Unload(soundID); in Unload()
H A Dsoundpool.h39 int32_t Play(int32_t soundID, PlayParams playParameters) override;
51 int32_t Unload(int32_t soundID) override;
H A Dsound_parser.cpp31 SoundParser::SoundParser(int32_t soundID, std::string url) in SoundParser() argument
37 soundID_ = soundID; in SoundParser()
42 SoundParser::SoundParser(int32_t soundID, int32_t fd, int64_t offset, int64_t length) in SoundParser() argument
54 soundID_ = soundID; in SoundParser()
61 MEDIA_LOGI("SoundParser Destruction, soundID:%{public}d", soundID_); in ~SoundParser()
68 MEDIA_LOGI("SoundParser::DoParser start, soundID:%{public}d", soundID_); in DoParser()
84 MEDIA_LOGI("SoundParser::DoParser end, soundID:%{public}d", soundID_); in DoParser()
91 MEDIA_LOGI("SoundParser::DoDemuxer start, soundID:%{public}d", soundID_); in DoDemuxer()
130 MEDIA_LOGI("SoundParser::DoDemuxer end, soundID:%{public}d", soundID_); in DoDemuxer()
137 MEDIA_LOGI("SoundParser::DoDecode start, soundID in DoDecode()
215 SoundDecoderCallback(const int32_t soundID, const std::shared_ptr<MediaAVCodec::AVCodecAudioDecoder> &audioDec, const std::shared_ptr<MediaAVCodec::AVDemuxer> &demuxer, const bool isRawFile) SoundDecoderCallback() argument
[all...]
H A Dsound_parser.h62 SoundDecoderCallback(const int32_t soundID, const std::shared_ptr<MediaAVCodec::AVCodecAudioDecoder> &audioDec,
106 SoundParser(int32_t soundID, std::string url);
107 SoundParser(int32_t soundID, int32_t fd, int64_t offset, int64_t length);
H A Dcache_buffer.cpp30 const size_t &cacheDataTotalSize, const int32_t &soundID, const int32_t &streamID) : trackFormat_(trackFormat), in CacheBuffer()
31 cacheData_(cacheData), cacheDataTotalSize_(cacheDataTotalSize), soundID_(soundID), streamID_(streamID), in CacheBuffer()
35 MEDIA_LOGI("Construction CacheBuffer soundID:%{public}d, streamID:%{public}d", soundID, streamID); in CacheBuffer()
40 MEDIA_LOGI("Destruction CacheBuffer soundID:%{public}d, streamID:%{public}d", soundID_, streamID_); in ~CacheBuffer()
28 CacheBuffer(const Format &trackFormat, const std::deque<std::shared_ptr<AudioBufferEntry>> &cacheData, const size_t &cacheDataTotalSize, const int32_t &soundID, const int32_t &streamID) CacheBuffer() argument
H A Dcache_buffer.h54 const int32_t &soundID, const int32_t &streamID);
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolplaystop_fuzzer/
H A Dsoundpoolplaystop_fuzzer.cpp57 int32_t soundID = 0; in FuzzSoundPoolPlay() local
61 soundID = TestSoundPool::Load(url); in FuzzSoundPoolPlay()
68 if (soundID > 0) { in FuzzSoundPoolPlay()
69 TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolPlay()
83 int32_t streamId = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolPlay()
107 int32_t soundID = 0; in FuzzSoundPoolStop() local
111 soundID = TestSoundPool::Load(url); in FuzzSoundPoolStop()
118 if (soundID > 0) { in FuzzSoundPoolStop()
119 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolStop()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetloop_fuzzer/
H A Dsoundpoolsetloop_fuzzer.cpp57 int32_t soundID = 0; in FuzzSoundPoolSetLoop() local
61 soundID = TestSoundPool::Load(url); in FuzzSoundPoolSetLoop()
70 if (soundID > 0) { in FuzzSoundPoolSetLoop()
71 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolSetLoop()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetrate_fuzzer/
H A Dsoundpoolsetrate_fuzzer.cpp57 int32_t soundID = 0; in FuzzSoundPoolSetRate() local
61 soundID = TestSoundPool::Load(url); in FuzzSoundPoolSetRate()
73 if (soundID > 0) { in FuzzSoundPoolSetRate()
74 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolSetRate()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetvolume_fuzzer/
H A Dsoundpoolsetvolume_fuzzer.cpp57 int32_t soundID = 0; in FuzzSoundPoolSetVolume() local
61 soundID = TestSoundPool::Load(url); in FuzzSoundPoolSetVolume()
72 if (soundID > 0) { in FuzzSoundPoolSetVolume()
73 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolSetVolume()
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolsetpriority_fuzzer/
H A Dsoundpoolsetpriority_fuzzer.cpp57 int32_t soundID = 0; in FuzzSoundPoolSetPriority() local
61 soundID = TestSoundPool::Load(url); in FuzzSoundPoolSetPriority()
70 if (soundID > 0) { in FuzzSoundPoolSetPriority()
71 int32_t streamID = TestSoundPool::Play(soundID, playParameters); in FuzzSoundPoolSetPriority()
/foundation/multimedia/player_framework/test/unittest/soundpool_test/src/
H A Dsoundpool_mock.cpp58 int32_t SoundPoolMock::Play(int32_t soundID, PlayParams playParameters) in Play() argument
61 return soundPool_->Play(soundID, playParameters); in Play()
97 int32_t SoundPoolMock::Unload(int32_t soundID) in Unload() argument
100 return soundPool_->Unload(soundID); in Unload()
/foundation/multimedia/player_framework/interfaces/inner_api/native/soundpool/include/
H A Disoundpool.h66 * @param soundID Returned by the load()
72 virtual int32_t Play(int32_t soundID, PlayParams playParameters) = 0;
132 * @param soundID Returned by the load()
137 virtual int32_t Unload(int32_t soundID) = 0;
/foundation/multimedia/player_framework/test/unittest/soundpool_test/include/
H A Dsoundpool_mock.h45 int32_t Play(int32_t soundID, PlayParams playParameters);
51 int32_t Unload(int32_t soundID);
/foundation/multimedia/player_framework/test/fuzztest/soundpool_fuzztest/soundpoolloadunload_fuzzer/
H A Dsoundpoolloadunload_fuzzer.cpp123 int32_t soundID = *reinterpret_cast<int32_t *>(data); in FuzzSoundPoolUnload() local
124 TestSoundPool::Unload(soundID); in FuzzSoundPoolUnload()
/foundation/multimedia/player_framework/frameworks/native/audio_haptic/
H A Daudio_haptic_sound_low_latency_impl.cpp105 int32_t soundID = soundPoolPlayer_->Load(uri); in PrepareSound() local
106 if (soundID < 0) { in PrepareSound()
119 soundID_ = soundID; in PrepareSound()

Completed in 8 milliseconds