Home
last modified time | relevance | path

Searched refs:_sounds (Results 1 – 25 of 174) sorted by relevance

1234567

/dports/games/libretro-scummvm/scummvm-7b1e929/engines/wintermute/base/sound/
H A Dbase_sound_manager.cpp66 delete _sounds[i]; in cleanup()
68 _sounds.clear(); in cleanup()
139 _sounds.push_back(sound); in addSound()
156 _sounds.push_back(sound); in addSound()
164 if (_sounds[i] == sound) { in removeSound()
165 delete _sounds[i]; in removeSound()
166 _sounds.remove_at(i); in removeSound()
233 _sounds[i]->updateVolume(); in setMasterVolume()
262 _sounds[i]->pause(); in pauseAll()
263 _sounds[i]->setFreezePaused(true); in pauseAll()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/wintermute/base/sound/
H A Dbase_sound_manager.cpp66 delete _sounds[i]; in cleanup()
68 _sounds.clear(); in cleanup()
139 _sounds.push_back(sound); in addSound()
156 _sounds.push_back(sound); in addSound()
164 if (_sounds[i] == sound) { in removeSound()
165 delete _sounds[i]; in removeSound()
166 _sounds.remove_at(i); in removeSound()
236 _sounds[i]->updateVolume(); in setMasterVolume()
265 _sounds[i]->pause(); in pauseAll()
266 _sounds[i]->setFreezePaused(true); in pauseAll()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/kyra/sound/
H A Dsound_digital_mr.cpp106 for (uint i = 0; i < ARRAYSIZE(_sounds); ++i) in SoundDigital_MR()
107 _sounds[i].stream = 0; in SoundDigital_MR()
111 for (int i = 0; i < ARRAYSIZE(_sounds); ++i) in ~SoundDigital_MR()
119 use = &_sounds[channel]; in playSound()
124 use = &_sounds[channel]; in playSound()
132 use = &_sounds[channel]; in playSound()
140 use = &_sounds[channel]; in playSound()
194 return use - _sounds; in playSound()
203 if (!_sounds[channel].stream) in isPlaying()
214 _mixer->stopHandle(_sounds[channel].handle); in stopSound()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/kyra/sound/
H A Dsound_digital_mr.cpp106 for (uint i = 0; i < ARRAYSIZE(_sounds); ++i) in SoundDigital_MR()
107 _sounds[i].stream = 0; in SoundDigital_MR()
111 for (int i = 0; i < ARRAYSIZE(_sounds); ++i) in ~SoundDigital_MR()
119 use = &_sounds[channel]; in playSound()
124 use = &_sounds[channel]; in playSound()
132 use = &_sounds[channel]; in playSound()
140 use = &_sounds[channel]; in playSound()
194 return use - _sounds; in playSound()
203 if (!_sounds[channel].stream) in isPlaying()
214 _mixer->stopHandle(_sounds[channel].handle); in stopSound()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/titanic/sound/
H A Dsound.cpp42 _sounds.destroyContents(); in ~CSound()
83 for (CSoundItemList::iterator i = _sounds.begin(); i != _sounds.end(); ++i) { in activateSound()
102 for (CSoundItemList::iterator i = _sounds.begin(); i != _sounds.end(); ) { in checkSounds()
107 i = _sounds.erase(i); in checkSounds()
119 i != _sounds.end(); --i) { in removeOldest()
122 _sounds.remove(soundItem); in removeOldest()
137 for (CSoundItemList::iterator i = _sounds.begin(); i != _sounds.end(); ++i) { in loadSound()
141 _sounds.remove(soundItem); in loadSound()
162 if (_sounds.size() > 10) in loadSound()
186 for (CSoundItemList::iterator i = _sounds.begin(); i != _sounds.end(); ++i) { in loadSpeech()
[all …]
H A Dqmixer.cpp153 if (_channels[iChannel]._sounds.empty()) in qsWaveMixPlayEx()
162 if (!channel._sounds.empty() && channel._sounds.front()._started) in qsWaveMixPlayEx()
163 _mixer->stopHandle(channel._sounds.front()._soundHandle); in qsWaveMixPlayEx()
165 channel._sounds.clear(); in qsWaveMixPlayEx()
176 return _channels[iChannel]._sounds.empty(); in qsWaveMixIsChannelDone()
204 && channel._sounds.front()._started) { in qsWaveMixPump()
212 if (!channel._sounds.empty()) { in qsWaveMixPump()
213 SoundEntry &sound = channel._sounds.front(); in qsWaveMixPump()
221 channel._sounds.erase(channel._sounds.begin()); in qsWaveMixPump()
227 if (!channel._sounds.empty()) { in qsWaveMixPump()
[all …]
H A Dsound_manager.cpp200 _sounds.flushChannel(slot._channel); in stopSound()
225 _sounds.flushChannel(channel); in stopChannel()
240 _sounds.flushChannel(idx); in stopAllChannels()
251 _sounds.flushChannel(iChannel); in resetChannel()
261 _sounds.flushChannel(slot._channel); in resetChannel()
338 return _sounds.contains(waveFile); in isActive()
421 _sounds.add(waveFile, iChannel, prox._endTalkerFn, prox._talker); in playWave()
435 _sounds.flushChannel(waveFile, iChannel); in playWave()
481 static_cast<QSoundManager *>(soundManager)->_sounds.flushChannel(waveFile, iChannel); in soundFinished()
/dports/games/scummvm/scummvm-2.5.1/engines/titanic/sound/
H A Dsound.cpp42 _sounds.destroyContents(); in ~CSound()
83 for (CSoundItemList::iterator i = _sounds.begin(); i != _sounds.end(); ++i) { in activateSound()
102 for (CSoundItemList::iterator i = _sounds.begin(); i != _sounds.end(); ) { in checkSounds()
107 i = _sounds.erase(i); in checkSounds()
119 i != _sounds.end(); --i) { in removeOldest()
122 _sounds.remove(soundItem); in removeOldest()
137 for (CSoundItemList::iterator i = _sounds.begin(); i != _sounds.end(); ++i) { in loadSound()
141 _sounds.remove(soundItem); in loadSound()
162 if (_sounds.size() > 10) in loadSound()
186 for (CSoundItemList::iterator i = _sounds.begin(); i != _sounds.end(); ++i) { in loadSpeech()
[all …]
H A Dqmixer.cpp153 if (_channels[iChannel]._sounds.empty()) in qsWaveMixPlayEx()
162 if (!channel._sounds.empty() && channel._sounds.front()._started) in qsWaveMixPlayEx()
163 _mixer->stopHandle(channel._sounds.front()._soundHandle); in qsWaveMixPlayEx()
165 channel._sounds.clear(); in qsWaveMixPlayEx()
176 return _channels[iChannel]._sounds.empty(); in qsWaveMixIsChannelDone()
204 && channel._sounds.front()._started) { in qsWaveMixPump()
212 if (!channel._sounds.empty()) { in qsWaveMixPump()
213 SoundEntry &sound = channel._sounds.front(); in qsWaveMixPump()
221 channel._sounds.erase(channel._sounds.begin()); in qsWaveMixPump()
227 if (!channel._sounds.empty()) { in qsWaveMixPump()
[all …]
H A Dsound_manager.cpp200 _sounds.flushChannel(slot._channel); in stopSound()
225 _sounds.flushChannel(channel); in stopChannel()
240 _sounds.flushChannel(idx); in stopAllChannels()
251 _sounds.flushChannel(iChannel); in resetChannel()
261 _sounds.flushChannel(slot._channel); in resetChannel()
338 return _sounds.contains(waveFile); in isActive()
421 _sounds.add(waveFile, iChannel, prox._endTalkerFn, prox._talker); in playWave()
435 _sounds.flushChannel(waveFile, iChannel); in playWave()
481 static_cast<QSoundManager *>(soundManager)->_sounds.flushChannel(waveFile, iChannel); in soundFinished()
/dports/games/openxcom/OpenXcom-1.0/src/Engine/
H A DSoundSet.cpp30 SoundSet::SoundSet() : _sounds() in SoundSet()
40 for (std::map<int, Sound*>::iterator i = _sounds.begin(); i != _sounds.end(); ++i) in ~SoundSet()
148 _sounds[i] = s; in loadCat()
165 if (_sounds.find(i) != _sounds.end()) in getSound()
167 return _sounds[i]; in getSound()
180 _sounds[i] = new Sound(); in addSound()
181 return _sounds[i]; in addSound()
191 return _sounds.size(); in getTotalSounds()
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/bbvs/
H A Dsound.cpp75 _sounds.push_back(sound); in loadSound()
79 _sounds[index]->play(loop); in playSound()
83 _sounds[index]->stop(); in stopSound()
87 return _sounds[index]->isPlaying(); in isSoundPlaying()
98 for (uint i = 0; i < _sounds.size(); ++i) in unloadSounds()
99 delete _sounds[i]; in unloadSounds()
100 _sounds.clear(); in unloadSounds()
104 for (uint i = 0; i < _sounds.size(); ++i) in stopAllSounds()
105 _sounds[i]->stop(); in stopAllSounds()
/dports/games/scummvm/scummvm-2.5.1/engines/bbvs/
H A Dsound.cpp75 _sounds.push_back(sound); in loadSound()
79 _sounds[index]->play(loop); in playSound()
83 _sounds[index]->stop(); in stopSound()
87 return _sounds[index]->isPlaying(); in isSoundPlaying()
98 for (uint i = 0; i < _sounds.size(); ++i) in unloadSounds()
99 delete _sounds[i]; in unloadSounds()
100 _sounds.clear(); in unloadSounds()
104 for (uint i = 0; i < _sounds.size(); ++i) in stopAllSounds()
105 _sounds[i]->stop(); in stopAllSounds()
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/glk/
H A Dsound.cpp36 for (int idx = (int)_sounds.size() - 1; idx >= 0; --idx) in ~Sounds()
37 delete _sounds[idx]; in ~Sounds()
41 for (uint idx = 0; idx < _sounds.size(); ++idx) { in removeSound()
42 if (_sounds[idx] == snd) { in removeSound()
43 _sounds.remove_at(idx); in removeSound()
51 _sounds.push_back(snd); in create()
56 for (int idx = 0; idx < (int)_sounds.size() - 1; ++idx) { in iterate()
57 if (_sounds[idx] == chan) { in iterate()
58 schanid_t next = _sounds[idx + 1]; in iterate()
70 for (uint idx = 0; idx < _sounds.size(); ++idx) in poll()
[all …]
/dports/graphics/gnash/gnash-2b3bdede0305c4fc3ad21a0a4197330606c9b880/libsound/
H A Dsound_handler.cpp171 for (EmbedSound* sdef : _sounds) in delete_all_sounds()
181 _sounds.clear(); in delete_all_sounds()
201 if (!validHandle(_sounds, handle)) { in delete_sound()
211 EmbedSound* def = _sounds[handle]; in delete_sound()
220 _sounds[handle] = nullptr; in delete_sound()
227 for (EmbedSound* sounddata : _sounds) in stop_all_sounds()
243 if (validHandle(_sounds, handle)) return _sounds[handle]->volume; in get_volume()
254 if (validHandle(_sounds, handle)) _sounds[handle]->volume = volume; in set_volume()
286 if (!validHandle(_sounds, handle)) { in stopEventSound()
312 for (EmbedSound* sounddata : _sounds) in stopAllEventSounds()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima4/sound/
H A Dsound.cpp57 _sounds.resize(SOUND_MAX); in SoundManager()
74 for (uint idx = 0; idx < _sounds.size(); ++idx) in ~SoundManager()
75 delete _sounds[idx]; in ~SoundManager()
81 if (_sounds[sound] == nullptr) { in load()
94 if (_sounds[sound] == nullptr) { in play()
131 _sounds[sound] = audioStream; in load_sys()
142 _sounds[sound]->rewind(); in play_sys()
147 &_soundHandle, _sounds[sound], -1, Audio::Mixer::kMaxChannelVolume, in play_sys()
153 int duration = _sounds[sound]->getLength().msecs(); in play_sys()
158 _sounds[sound], loops, DisposeAfterUse::NO); in play_sys()
/dports/games/scummvm/scummvm-2.5.1/engines/glk/
H A Dsound.cpp36 for (int idx = (int)_sounds.size() - 1; idx >= 0; --idx) in ~Sounds()
37 delete _sounds[idx]; in ~Sounds()
41 for (uint idx = 0; idx < _sounds.size(); ++idx) { in removeSound()
42 if (_sounds[idx] == snd) { in removeSound()
43 _sounds.remove_at(idx); in removeSound()
51 _sounds.push_back(snd); in create()
56 for (int idx = 0; idx < (int)_sounds.size() - 1; ++idx) { in iterate()
57 if (_sounds[idx] == chan) { in iterate()
58 schanid_t next = _sounds[idx + 1]; in iterate()
70 for (uint idx = 0; idx < _sounds.size(); ++idx) in poll()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/petka/
H A Dsound.cpp90 _sounds.getOrCreateVal(name).reset(sound); in addSound()
96 SoundsMap::iterator it = _sounds.find(name); in findSound()
97 return it != _sounds.end() ? it->_value.get() : nullptr; in findSound()
102 _sounds.erase(name); in removeSound()
107 _sounds.clear(false); in removeAll()
112 for (it = _sounds.begin(); it != _sounds.end(); ++it) { in removeSoundsWithType()
115 _sounds.erase(it); // it is safe to inc iterator after erasing in our hashmap impl in removeSoundsWithType()
/dports/games/openttd/openttd-12.1/src/
H A Dnewgrf_sound.cpp23 static std::vector<SoundEntry> _sounds; variable
33 size_t pos = _sounds.size(); in AllocateSound()
34 _sounds.insert(_sounds.end(), num, SoundEntry()); in AllocateSound()
35 return &_sounds[pos]; in AllocateSound()
41 _sounds.clear(); in InitializeSoundPool()
50 if (index >= _sounds.size()) return nullptr; in GetSound()
51 return &_sounds[index]; in GetSound()
57 return (uint)_sounds.size(); in GetNumSounds()
/dports/games/residualvm/residualvm-0.3.1/engines/myst3/
H A Dambient.cpp58 for (uint i = 0; i < _sounds.size(); i++) in scaleVolume()
59 _sounds[i].volume = _sounds[i].volume * volume / 100; in scaleVolume()
63 _sounds.clear(); in loadNode()
76 if (_sounds.size() == 0) in loadNode()
100 _sounds.push_back(s); in addSound()
178 for (uint i = 0; i < _sounds.size(); i++) { in applySounds()
179 const AmbientSound &sound = _sounds[i]; in applySounds()
/dports/games/scummvm/scummvm-2.5.1/engines/myst3/
H A Dambient.cpp58 for (uint i = 0; i < _sounds.size(); i++) in scaleVolume()
59 _sounds[i].volume = _sounds[i].volume * volume / 100; in scaleVolume()
63 _sounds.clear(); in loadNode()
76 if (_sounds.size() == 0) in loadNode()
100 _sounds.push_back(s); in addSound()
178 for (uint i = 0; i < _sounds.size(); i++) { in applySounds()
179 const AmbientSound &sound = _sounds[i]; in applySounds()
/dports/games/90secondportraits/90-Second-Portraits-1.01b/
H A DResources.lua13 Resources.static._sounds = {}
17 if self._sounds[path] == nil then
18 self._sounds[path] = love.audio.newSource(path, "static")
20 return self._sounds[path]
/dports/games/valyriatear/ValyriaTear-1.1.0/src/common/global/media/
H A Dglobal_media.cpp76 …map<std::string, vt_audio::SoundDescriptor *>::iterator it = _sounds.begin(); it != _sounds.end();… in ~GlobalMedia()
78 _sounds.clear(); in ~GlobalMedia()
234 std::map<std::string, vt_audio::SoundDescriptor *>::iterator sound = _sounds.find(identifier); in PlaySound()
235 if((sound != _sounds.end()) && sound->second) in PlaySound()
244 _sounds[sound_name] = new vt_audio::SoundDescriptor(); in _LoadSoundFile()
245 if(!_sounds[sound_name]->LoadAudio(filename)) in _LoadSoundFile()
/dports/games/openxcom/OpenXcom-1.0/src/Ruleset/
H A DExtraSounds.cpp46 _sounds = node["files"].as< std::map<int, std::string> >(_sounds); in load()
56 return &_sounds; in getSounds()
/dports/games/battletanks/btanks-0.9.8083/engine/sound/
H A Dmixer.cpp117 std::for_each(_sounds.begin(), _sounds.end(), delete_ptr2<Sounds::value_type>()); in deinit()
118 _sounds.clear(); in deinit()
203 if (_sounds.find(filename) != _sounds.end()) { in loadSample()
220 _sounds[filename] = sample; in loadSample()
257 Sounds::const_iterator i = _sounds.find(name); in playSample()
258 if (i == _sounds.end()) { in playSample()

1234567