| 37 | //------------------------------------------------------------------------------ |
| 38 | |
| 39 | static void showInfo(std::ostream& stream, const SF_INFO& info) |
| 40 | { |
| 41 | stream << "Frames: " << info.frames |
| 42 | << "\nSample rate: " << info.samplerate << " Hz" |
| 43 | << "\nChannels: " << info.channels |
| 44 | << "\nFormat: 0x" << std::hex << info.format << std::dec |
| 45 | << "\nSections: " << info.sections |
| 46 | << "\nSeekable: " << (info.seekable ? "yes" : "no") << '\n'; |
| 47 | } |
| 48 | |
| 49 | //------------------------------------------------------------------------------ |
| 50 | |