# Playing a continuous sound

**URL:** <https://psychtoolbox.discourse.group/t/playing-a-continuous-sound/3107>\
**Category:** Programming Help\
**Created:** [March 10, 2020, 11:40am UTC](https://psychtoolbox.discourse.group/t/playing-a-continuous-sound/3107 "2020-03-10T11:40:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Stefanie](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Stefanie](https://psychtoolbox.discourse.group/u/Stefanie)\
**Post date:** [March 10, 2020, 11:56am UTC](https://psychtoolbox.discourse.group/t/playing-a-continuous-sound/3107/2 "2020-03-10T11:56:51Z")

</div>

I found something that seems to explain my question already, haven’t tried it yet, but looking very promising. Sorry for the spam!

> [@Re: continuous sound output with psychtoolbox](https://psychtoolbox.discourse.group/t/re-continuous-sound-output-with-psychtoolbox/1605):
>
> Hi, i'm forwarding this to the psychtoolbox forum in case it is of general interest. yes that's doable and works on all operating systems. The 'FillBuffer' call has an optional 'streamingrefill' flag. If you set it to 1, it allows to "append" sound to the buffer. Technically it doesn't really append, but it refills the parts of the buffer that are already played out, so if you'd refill 1 second of sound, the function would either return immediately if 1 sec of space is fr…

---

_[View the full topic](https://psychtoolbox.discourse.group/t/playing-a-continuous-sound/3107)._
