ErrorType SoundSource::Load(const SoundData &soundData, SoundCollection *collection) { String name = soundData.GetName(); Stop(); Bind(collection, collection->GetIDByName(name)); if (-1 < mID) return kErrorNone; // No sound was found, load the sound data return LoadResource(name, soundData, collection); }