Sound::Play2D
function · sound · orchestration
- Address
0x7a5450· 58 bytes, up to0x7a5489- Meaning
- Opens a file as a 2D stream after the duplicate check
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- sound/engine#opening-a-stream
Finding: Opening a stream in sound: the engine
Sound::Play(bus, name, mode, held, flags) refuses, returning null, a non-music sound while the
sound-effects switch is off or while the window is inactive. It calls FSOUND_Stream_Open(name, mode, 0, 0); a null stream returns null. It makes the record, sets the end callback and, unless
held, starts it with FSOUND_Stream_PlayEx(FSOUND_FREE, stream, NULL, FALSE); a failed start
frees the record and returns null. A started music sound is muted while the window is inactive. The
2D opener uses mode 0x82000, the 3D opener 0x1000; the looped openers use 0x82002 and 0x1002, call
FSOUND_Stream_SetLoopCount(stream, count − 1) (count 0 loops forever) and add flag 0x4000000.
The derivation is in the doc.
Callers 6
- Script::PlaySoundFile sound
- PlayCreditsTrack sound
- InternalPlaySound sound
- PlayZoneTrack sound
- PlayZoneIntro sound
- Sound::Play2DLooped sound
Callees 2
- Sound::Play sound
- Sound::DupeCheckFailed sound
Calls and jumps by a bare address, from tables/calls.tsv.