|
OpenTTD Source 20251104-master-g3befbdd52f
|
NewGRF Action 0x00 handler for sounds. More...
#include "../stdafx.h"#include "../debug.h"#include "../newgrf_sound.h"#include "newgrf_bytereader.h"#include "newgrf_internal.h"#include "../safeguards.h"Go to the source code of this file.
Functions | |
| static ChangeInfoResult | SoundEffectChangeInfo (uint first, uint last, int prop, ByteReader &buf) |
| Define properties for sound effects. | |
NewGRF Action 0x00 handler for sounds.
Definition in file newgrf_act0_sounds.cpp.
|
static |
Define properties for sound effects.
| first | Local ID of the first sound. |
| last | Local ID of the last sound. |
| prop | The property to change. |
| buf | The property value. |
Definition at line 26 of file newgrf_act0_sounds.cpp.
References CIR_INVALID_ID, CIR_SUCCESS, CIR_UNKNOWN, Clamp(), GrfProcessingState::grffile, ORIGINAL_SAMPLE_COUNT, and ByteReader::ReadByte().