Sound::Play
function · sound · host
- Address
0x7a5290· 303 bytes, up to0x7a53be- Meaning
- Opens a file as a stream on a bus, makes its record and starts it unless held
- 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 2
- Sound::Play2D sound
- Sound::Play3D sound
Callees 8
- CDataAllocator::PutData base
- Sound::Destructor sound
- Sound::Create sound
- Sound::StartChannel sound
- _FSOUND_Stream_SetEndCallback@12 unassigned
- _FSOUND_Stream_Open@16 unassigned
- _FSOUND_SetMute@8 unassigned
- _FSOUND_Stream_PlayEx@16 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.