Home
last modified time | relevance | path

Searched refs:sndDesc (Results 1 – 19 of 19) sorted by relevance

/dports/games/scummvm/scummvm-2.5.1/engines/gob/sound/
H A Dsound.cpp114 if (!sndDesc) in sampleLoad()
133 if (!sndDesc || sndDesc->empty()) in sampleFree()
147 _blaster->stopSound(0, sndDesc); in sampleFree()
151 sndDesc->free(); in sampleFree()
451 if (!_blaster || !sndDesc) in blasterPlay()
685 delete sndDesc; in bgPlay()
689 _bgatmos->queueSample(*sndDesc); in bgPlay()
702 SoundDesc *sndDesc; in bgPlay() local
707 sndDesc = new SoundDesc; in bgPlay()
709 _bgatmos->queueSample(*sndDesc); in bgPlay()
[all …]
H A Dsoundblaster.cpp41 void SoundBlaster::playSample(SoundDesc &sndDesc, int16 repCount, in playSample() argument
43 SoundMixer::play(sndDesc, repCount, frequency, fadeLength); in playSample()
46 void SoundBlaster::stopSound(int16 fadeLength, SoundDesc *sndDesc) { in stopSound() argument
49 if (sndDesc && (sndDesc != _curSoundDesc)) in stopSound()
111 void SoundBlaster::setSample(SoundDesc &sndDesc, int16 repCount, int16 frequency, in setSample() argument
114 _curSoundDesc = &sndDesc; in setSample()
115 SoundMixer::setSample(sndDesc, repCount, frequency, fadeLength); in setSample()
H A Dsoundmixer.cpp100 void SoundMixer::setSample(SoundDesc &sndDesc, int16 repCount, int16 frequency, in setSample() argument
104 frequency = sndDesc._frequency; in setSample()
106 sndDesc._repCount = repCount - 1; in setSample()
107 sndDesc._frequency = frequency; in setSample()
109 _16bit = (sndDesc._mixerFlags & Audio::FLAG_16BITS) != 0; in setSample()
111 _data = sndDesc.getData(); in setSample()
113 _length = sndDesc.size(); in setSample()
141 void SoundMixer::play(SoundDesc &sndDesc, int16 repCount, int16 frequency, in play() argument
148 setSample(sndDesc, repCount, frequency, fadeLength); in play()
H A Dsound.h60 bool sampleLoad(SoundDesc *sndDesc, SoundType type, const char *fileName);
61 void sampleFree(SoundDesc *sndDesc, bool noteAdLib = false, int index = -1);
65 void blasterPlay(SoundDesc *sndDesc, int16 repCount,
67 void blasterStop(int16 fadeLength, SoundDesc *sndDesc = 0);
H A Dsoundblaster.h43 void playSample(SoundDesc &sndDesc, int16 repCount,
45 void stopSound(int16 fadeLength, SoundDesc *sndDesc = 0);
66 void setSample(SoundDesc &sndDesc, int16 repCount,
H A Dsoundmixer.h40 virtual void play(SoundDesc &sndDesc, int16 repCount,
86 virtual void setSample(SoundDesc &sndDesc, int16 repCount,
H A Dbgatmosphere.cpp64 void BackgroundAtmosphere::queueSample(SoundDesc &sndDesc) { in queueSample() argument
67 _queue.push_back(&sndDesc); in queueSample()
H A Dbgatmosphere.h51 void queueSample(SoundDesc &sndDesc);
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/gob/sound/
H A Dsound.cpp114 if (!sndDesc) in sampleLoad()
133 if (!sndDesc || sndDesc->empty()) in sampleFree()
147 _blaster->stopSound(0, sndDesc); in sampleFree()
151 sndDesc->free(); in sampleFree()
451 if (!_blaster || !sndDesc) in blasterPlay()
679 delete sndDesc; in bgPlay()
683 _bgatmos->queueSample(*sndDesc); in bgPlay()
696 SoundDesc *sndDesc; in bgPlay() local
701 sndDesc = new SoundDesc; in bgPlay()
703 _bgatmos->queueSample(*sndDesc); in bgPlay()
[all …]
H A Dsoundblaster.cpp41 void SoundBlaster::playSample(SoundDesc &sndDesc, int16 repCount, in playSample() argument
43 SoundMixer::play(sndDesc, repCount, frequency, fadeLength); in playSample()
46 void SoundBlaster::stopSound(int16 fadeLength, SoundDesc *sndDesc) { in stopSound() argument
49 if (sndDesc && (sndDesc != _curSoundDesc)) in stopSound()
111 void SoundBlaster::setSample(SoundDesc &sndDesc, int16 repCount, int16 frequency, in setSample() argument
114 _curSoundDesc = &sndDesc; in setSample()
115 SoundMixer::setSample(sndDesc, repCount, frequency, fadeLength); in setSample()
H A Dsoundmixer.cpp100 void SoundMixer::setSample(SoundDesc &sndDesc, int16 repCount, int16 frequency, in setSample() argument
104 frequency = sndDesc._frequency; in setSample()
106 sndDesc._repCount = repCount - 1; in setSample()
107 sndDesc._frequency = frequency; in setSample()
109 _16bit = (sndDesc._mixerFlags & Audio::FLAG_16BITS) != 0; in setSample()
111 _data = sndDesc.getData(); in setSample()
113 _length = sndDesc.size(); in setSample()
141 void SoundMixer::play(SoundDesc &sndDesc, int16 repCount, int16 frequency, in play() argument
148 setSample(sndDesc, repCount, frequency, fadeLength); in play()
H A Dsoundblaster.h43 void playSample(SoundDesc &sndDesc, int16 repCount,
45 void stopSound(int16 fadeLength, SoundDesc *sndDesc = 0);
66 void setSample(SoundDesc &sndDesc, int16 repCount,
H A Dsound.h60 bool sampleLoad(SoundDesc *sndDesc, SoundType type, const char *fileName);
61 void sampleFree(SoundDesc *sndDesc, bool noteAdLib = false, int index = -1);
65 void blasterPlay(SoundDesc *sndDesc, int16 repCount,
67 void blasterStop(int16 fadeLength, SoundDesc *sndDesc = 0);
H A Dsoundmixer.h40 virtual void play(SoundDesc &sndDesc, int16 repCount,
86 virtual void setSample(SoundDesc &sndDesc, int16 repCount,
H A Dbgatmosphere.cpp64 void BackgroundAtmosphere::queueSample(SoundDesc &sndDesc) { in queueSample() argument
67 _queue.push_back(&sndDesc); in queueSample()
H A Dbgatmosphere.h51 void queueSample(SoundDesc &sndDesc);
/dports/games/shockolate/systemshock-0.8.2-43-ga9eb1b93/src/Libraries/AFILE/Tests/
H A DAddSoundToMovie.c41 void CreateSoundDescription(Handle sndHandle, SoundDescriptionHandle sndDesc, long *sndDataOffset, …
163 SoundDescriptionHandle sndDesc = nil; in CreateMySoundTrack() local
174 sndDesc = (SoundDescriptionHandle)NewHandle(4); in CreateMySoundTrack()
177 CreateSoundDescription(sndHandle, sndDesc, &sndDataOffset, &numSamples, &sndDataSize); in CreateMySoundTrack()
182 theMedia = NewTrackMedia(theTrack, SoundMediaType, FixRound((**sndDesc).sampleRate), nil, 0); in CreateMySoundTrack()
188 …e(theMedia, sndHandle, sndDataOffset, sndDataSize, 1, (SampleDescriptionHandle)sndDesc, numSamples, in CreateMySoundTrack()
198 if (sndDesc != nil) in CreateMySoundTrack()
199 DisposeHandle((Handle)sndDesc); in CreateMySoundTrack()
203 void CreateSoundDescription(Handle sndHandle, SoundDescriptionHandle sndDesc, long *sndDataOffset, … in CreateSoundDescription() argument
218 SetHandleSize((Handle)sndDesc, sizeof(SoundDescription)); in CreateSoundDescription()
[all …]
H A DMovConvDiv.c99 void CreateSoundDescription(Handle sndHandle, SoundDescriptionHandle sndDesc, long *sndDataOffset, …
507 SoundDescriptionHandle sndDesc = nil; in CreateMySoundTrack() local
518 sndDesc = (SoundDescriptionHandle)NewHandle(4); in CreateMySoundTrack()
521 CreateSoundDescription(sndHandle, sndDesc, &sndDataOffset, &numSamples, &sndDataSize); in CreateMySoundTrack()
526 theMedia = NewTrackMedia(theTrack, SoundMediaType, FixRound((**sndDesc).sampleRate), nil, 0); in CreateMySoundTrack()
532 …e(theMedia, sndHandle, sndDataOffset, sndDataSize, 1, (SampleDescriptionHandle)sndDesc, numSamples, in CreateMySoundTrack()
542 if (sndDesc != nil) in CreateMySoundTrack()
543 DisposeHandle((Handle)sndDesc); in CreateMySoundTrack()
547 void CreateSoundDescription(Handle sndHandle, SoundDescriptionHandle sndDesc, long *sndDataOffset, … in CreateSoundDescription() argument
562 SetHandleSize((Handle)sndDesc, sizeof(SoundDescription)); in CreateSoundDescription()
[all …]
H A DMovConv.c93 void CreateSoundDescription(Handle sndHandle, SoundDescriptionHandle sndDesc, long *sndDataOffset, …
671 SoundDescriptionHandle sndDesc = nil; in CreateMySoundTrack() local
682 sndDesc = (SoundDescriptionHandle)NewHandle(4); in CreateMySoundTrack()
685 CreateSoundDescription(sndHandle, sndDesc, &sndDataOffset, &numSamples, &sndDataSize); in CreateMySoundTrack()
690 theMedia = NewTrackMedia(theTrack, SoundMediaType, FixRound((**sndDesc).sampleRate), nil, 0); in CreateMySoundTrack()
696 …e(theMedia, sndHandle, sndDataOffset, sndDataSize, 1, (SampleDescriptionHandle)sndDesc, numSamples, in CreateMySoundTrack()
706 if (sndDesc != nil) in CreateMySoundTrack()
707 DisposeHandle((Handle)sndDesc); in CreateMySoundTrack()
711 void CreateSoundDescription(Handle sndHandle, SoundDescriptionHandle sndDesc, long *sndDataOffset, … in CreateSoundDescription() argument
726 SetHandleSize((Handle)sndDesc, sizeof(SoundDescription)); in CreateSoundDescription()
[all …]