added access to the sample stream

Hi, just added access to the sample stream