coastline 0.0.4
Loading...
Searching...
No Matches
soundchannel.h File Reference

The start of a sample on a sound effect channel. More...

#include "common/types.h"
Include dependency graph for soundchannel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void InitSoundChannel (s16 channel, s8 *sample, u32 length, u32 loopLength)
 Play a sample on a sound effect channel at its own rate and the middle levels.
void StartSoundChannelMuted (s16 channel, s8 *sample, u32 length, u32 loopLength)
 Play a sample on a sound effect channel at its own rate and no level, for SetSoundChannelVolume() to raise.

Detailed Description

The start of a sample on a sound effect channel.

Function Documentation

◆ InitSoundChannel()

void InitSoundChannel ( s16 channel,
s8 * sample,
u32 length,
u32 loopLength )

Play a sample on a sound effect channel at its own rate and the middle levels.

Parameters
channelThe sound effect channel.
sampleThe first byte of the sample.
lengthThe length of the sample, in bytes.
loopLengthThe length of the loop at the end of the sample in bytes, or 0 to play once.
Ghidra address:
USA: 0x80257b04
Ghidra address:
Asia: 0x80257654
Ghidra address:
EUR: 0x802590d4
Ghidra address:
JPN: 0x80258a64

◆ StartSoundChannelMuted()

void StartSoundChannelMuted ( s16 channel,
s8 * sample,
u32 length,
u32 loopLength )

Play a sample on a sound effect channel at its own rate and no level, for SetSoundChannelVolume() to raise.

Parameters
channelThe sound effect channel.
sampleThe first byte of the sample.
lengthThe length of the sample, in bytes.
loopLengthThe length of the loop at the end of the sample in bytes, or 0 to play once.
Ghidra address:
USA: 0x80257b78
Ghidra address:
Asia: 0x802576C8
Ghidra address:
EUR: 0x80259148
Ghidra address:
JPN: 0x80258ad8