MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / require_assets

Function require_assets

src/models/stable_audio/conditioner.cpp:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15constexpr float kPi = 3.14159265358979323846F;
16
17std::shared_ptr<const StableAudioAssets> require_assets(std::shared_ptr<const StableAudioAssets> assets) {
18 if (assets == nullptr) {
19 throw std::runtime_error("Stable Audio conditioner requires assets");
20 }
21 return assets;
22}
23
24} // namespace
25

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected