add methods to set/get samples and volume