# Block-level use sample pack

``

    with_sample_pack  pack_path (string)

Given a path to a folder of samples on your filesystem, this method makes any `.wav`, `.wave`, `.aif`, `.aiff` or `.flac` files in that folder available as samples inside the given block.

Introduced in v2.0

## Example

# Example 1
``
    with_sample_pack '/path/to/sample/dir' do
      sample :foo
    end
| ``
    #=> plays /path/to/sample/dir/foo.{wav|wave|aif|aiff|flac}