MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / LoadAudio

Method LoadAudio

mlx/data/op/LoadAudio.cpp:65–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63namespace op {
64
65LoadAudio::LoadAudio(
66 const std::string& ikey,
67 const std::string& prefix,
68 bool info,
69 bool from_memory,
70 LoadAudioInfo info_type,
71 int sample_rate,
72 LoadAudioResamplingQuality resampling_quality,
73 const std::string& infokey,
74 const std::string& okey)
75 : Op(),
76 iKey_(ikey),
77 oKey_(okey),
78 infoKey_(infokey),
79 prefix_(prefix),
80 info_(info),
81 from_memory_(from_memory),
82 infoType_(info_type),
83 sampleRate_(sample_rate),
84 resamplingQuality_(resampling_quality) {}
85
86Sample LoadAudio::apply(const Sample& sample) const {
87 auto src = sample::check_key(sample, iKey_, ArrayType::Any);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected