| 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(); |
no outgoing calls
no test coverage detected