MCPcopy Create free account
hub / github.com/csound/csound / open

Method open

interfaces/Soundfile.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 return (int) sf_info.frames;
73 }
74 int Soundfile::open(std::string filename)
75 {
76 close();
77 sndfile = sf_open(filename.c_str(), SFM_RDWR, &sf_info);
78 if (!sndfile) {
79 error();
80 return -1;
81 }
82 return 0;
83 }
84 int Soundfile::create(std::string filename, int framesPerSecond, int channelsPerFrame, int format)
85 {
86 close();

Callers 5

copyAssetMethod · 0.80
loadOrcLibraryMethod · 0.80
writeToFSFunction · 0.80
handleMessageMethod · 0.80
CopyUrlToLocalFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected