A sample is a short piece of a computer's memory that we have loaded into a prerecorded sound. I'm not sure how one loads memory into sound. That sounds like an experiment.
A sample is a small taste of a prerecorded sound. A sample can greatly vary in length, but is usually short.
A sample is a short piece of prerecorded sound that we have loaded into the computer's memory. Correct!
A sample is a short piece of precorded memory that we have loaded into the computer's sound. This is a little wacky.