MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetTrackSample

Method GetTrackSample

src/openrct2/object/MusicObject.cpp:222–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 }
221
222 Audio::IAudioSource* MusicObject::GetTrackSample(size_t trackIndex) const
223 {
224 return _loadedSampleTable.LoadSample(static_cast<uint32_t>(trackIndex));
225 }
226
227 ObjectAsset MusicObject::GetAsset(IReadObjectContext& context, std::string_view path)
228 {

Callers 1

Calls 1

LoadSampleMethod · 0.80

Tested by

no test coverage detected