# Test if sample was pre-loaded

``

    sample_loaded?  path (string)

Given a path to a `.wav`, `.wave`, `.aif`, `.aiff`, `.ogg`, `.oga` or `.flac` file, returns `true` if the sample has already been loaded.

Introduced in v2.2

## Example

# Example 1
``
    load_sample :elec_blip
    puts sample_loaded? :elec_blip
    puts sample_loaded? :misc_burp
| ``
    # :elec_blip is now loaded and ready to play as a sample
    # prints true because it has been pre-loaded
    # prints false because it has not been loaded