OpenTTD Source 20241224-master-gf74b0cf984
SoundEntry Struct Reference

Data Fields

std::shared_ptr< std::vector< uint8_t > > data
 
class RandomAccessFilefile
 
size_t file_offset
 
size_t file_size
 
uint16_t rate
 
uint8_t bits_per_sample
 
uint8_t channels
 
uint8_t volume
 
uint8_t priority
 
SoundSource source
 
uint8_t grf_container_ver
 NewGRF container version if the sound is from a NewGRF.
 

Detailed Description

Definition at line 19 of file sound_type.h.

Field Documentation

◆ bits_per_sample

uint8_t SoundEntry::bits_per_sample

Definition at line 25 of file sound_type.h.

◆ channels

uint8_t SoundEntry::channels

Definition at line 26 of file sound_type.h.

◆ data

std::shared_ptr<std::vector<uint8_t> > SoundEntry::data

Definition at line 20 of file sound_type.h.

◆ file

class RandomAccessFile* SoundEntry::file

Definition at line 21 of file sound_type.h.

◆ file_offset

size_t SoundEntry::file_offset

Definition at line 22 of file sound_type.h.

◆ file_size

size_t SoundEntry::file_size

Definition at line 23 of file sound_type.h.

◆ grf_container_ver

uint8_t SoundEntry::grf_container_ver

NewGRF container version if the sound is from a NewGRF.

Definition at line 30 of file sound_type.h.

Referenced by ChangeSoundSet(), LoadGRFSound(), and LoadNewGRFSound().

◆ priority

uint8_t SoundEntry::priority

Definition at line 28 of file sound_type.h.

◆ rate

uint16_t SoundEntry::rate

Definition at line 24 of file sound_type.h.

◆ source

SoundSource SoundEntry::source

Definition at line 29 of file sound_type.h.

◆ volume

uint8_t SoundEntry::volume

Definition at line 27 of file sound_type.h.


The documentation for this struct was generated from the following file: