///////////////////////////////////////////////////////
| 106 | |
| 107 | //////////////////////////////////////////////////////////// |
| 108 | bool SoundBuffer::loadFromFile(const std::filesystem::path& filename) |
| 109 | { |
| 110 | InputSoundFile file; |
| 111 | if (file.openFromFile(filename)) |
| 112 | return initialize(file); |
| 113 | |
| 114 | err() << "Failed to open sound buffer from file" << std::endl; |
| 115 | return false; |
| 116 | } |
| 117 | |
| 118 | |
| 119 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected