OpenTTD Source 20260721-master-g25ec12c62d
soundloader_wav.cpp File Reference

Loading of wav sounds. More...

#include "stdafx.h"
#include "core/label_type.hpp"
#include "core/math_func.hpp"
#include "debug.h"
#include "random_access_file_type.h"
#include "sound_type.h"
#include "soundloader_type.h"
#include "safeguards.h"

Go to the source code of this file.

Data Structures

class  SoundLoader_Wav
 Wav file (RIFF/WAVE) sound loader. More...

Typedefs

using WavTag = Label<struct WavTagTag>
 Label for different tags in the file.

Functions

WavTag ReadWavTag (RandomAccessFile &file)
 Read a WavTag from the file.

Detailed Description

Loading of wav sounds.

Definition in file soundloader_wav.cpp.

Typedef Documentation

◆ WavTag

using WavTag = Label<struct WavTagTag>

Label for different tags in the file.

Definition at line 20 of file soundloader_wav.cpp.

Function Documentation

◆ ReadWavTag()

WavTag ReadWavTag ( RandomAccessFile & file)

Read a WavTag from the file.

Parameters
fileThe file to read from.
Returns
The read WavTag.

Definition at line 27 of file soundloader_wav.cpp.

References RandomAccessFile::ReadBlock().

Referenced by SoundLoader_Wav::Load().