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

Function ResamplerToString

Source/options.cpp:1901–1915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1899} // namespace
1900
1901string_view ResamplerToString(Resampler resampler)
1902{
1903 switch (resampler) {
1904#ifdef DEVILUTIONX_RESAMPLER_SPEEX
1905 case Resampler::Speex:
1906 return ResamplerSpeex;
1907#endif
1908#ifdef DVL_AULIB_SUPPORTS_SDL_RESAMPLER
1909 case Resampler::SDL:
1910 return ResamplerSDL;
1911#endif
1912 default:
1913 return "";
1914 }
1915}
1916
1917std::optional<Resampler> ResamplerFromString(string_view resampler)
1918{

Callers 2

SaveToIniMethod · 0.85
GetListDescriptionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected