| 142 | /* int status = */ sf_command(sndfile, SFC_UPDATE_HEADER_NOW, 0, 0); |
| 143 | } |
| 144 | int Soundfile::close() |
| 145 | { |
| 146 | int status = 0; |
| 147 | if (sndfile) { |
| 148 | status = sf_close(sndfile); |
| 149 | if (status) { |
| 150 | std::cerr << sf_error_number(status) << std::endl; |
| 151 | } |
| 152 | } |
| 153 | initialize(); |
| 154 | return status; |
| 155 | } |
| 156 | void Soundfile::error() const |
| 157 | { |
| 158 | std::cerr << sf_strerror(sndfile) << std::endl; |