///////////////////////////////////////////////////////
| 118 | |
| 119 | //////////////////////////////////////////////////////////// |
| 120 | bool SoundBuffer::loadFromMemory(const void* data, std::size_t sizeInBytes) |
| 121 | { |
| 122 | InputSoundFile file; |
| 123 | if (file.openFromMemory(data, sizeInBytes)) |
| 124 | return initialize(file); |
| 125 | |
| 126 | err() << "Failed to open sound buffer from memory" << std::endl; |
| 127 | return false; |
| 128 | } |
| 129 | |
| 130 | |
| 131 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected