| 103 | } |
| 104 | |
| 105 | bool SoundBuffer::loadFromPack( Pack* pack, std::string filePackPath ) { |
| 106 | bool Ret = false; |
| 107 | ScopedBuffer buffer; |
| 108 | |
| 109 | if ( pack->isOpen() && pack->extractFileToMemory( filePackPath, buffer ) ) |
| 110 | Ret = loadFromMemory( reinterpret_cast<const char*>( buffer.get() ), buffer.length() ); |
| 111 | |
| 112 | return Ret; |
| 113 | } |
| 114 | |
| 115 | bool SoundBuffer::saveToFile( const std::string& filename ) const { |
| 116 | // Create the sound file in write mode |
nothing calls this directly
no test coverage detected