MCPcopy Create free account
hub / github.com/SpartanJ/eepp / loadFromPack

Method loadFromPack

src/eepp/audio/soundbuffer.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105bool 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
115bool SoundBuffer::saveToFile( const std::string& filename ) const {
116 // Create the sound file in write mode

Callers

nothing calls this directly

Calls 4

isOpenMethod · 0.45
extractFileToMemoryMethod · 0.45
getMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected