Added an emulated sampler for OSX

This allows it to work on OSX. Maybe there's a better way though?