MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / ResamplerFromString

Function ResamplerFromString

Source/options.cpp:1917–1928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915}
1916
1917std::optional<Resampler> ResamplerFromString(string_view resampler)
1918{
1919#ifdef DEVILUTIONX_RESAMPLER_SPEEX
1920 if (resampler == ResamplerSpeex)
1921 return Resampler::Speex;
1922#endif
1923#ifdef DVL_AULIB_SUPPORTS_SDL_RESAMPLER
1924 if (resampler == ResamplerSDL)
1925 return Resampler::SDL;
1926#endif
1927 return std::nullopt;
1928}
1929
1930} // namespace devilution

Callers 1

LoadFromIniMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected