[Csnd] Clear SPOUT buffer
Date | 2020-06-07 18:48 |
From | Syl Morrison |
Subject | [Csnd] Clear SPOUT buffer |
Hi all, so me and Rory have been working out how to use Csound's API within unreal, and have it making noise, linking etc, but because of the nature of how it works, it's always reading ksmps from the SPOUT buffer, I was just wondering what the kind of usual approach for clearing unused samples in it is, like for example if I trigger a 2 second sound, when that sound ends I get really high pitched frequencies, I assume because it's still reading the SPOUT buffer but there's nothing in it, any recommendations?
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
|
Date | 2020-06-07 19:34 |
From | Rory Walsh |
Subject | Re: [Csnd] Clear SPOUT buffer |
You shouldn't need to clear the spout buffer. That noise is likely caused by another issue. I saw your post to the Cabbage list, I'll take a look tomorrow. On Sun 7 Jun 2020, 18:49 Syl Morrison, <honoonu@gmail.com> wrote:
|
Date | 2020-06-07 19:40 |
From | Syl Morrison |
Subject | Re: [Csnd] Clear SPOUT buffer |
Oh my bad, no rush at all, bopped over here to stop ruining your sunday with menial questions hahaha On Sun, Jun 7, 2020 at 7:35 PM Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2020-06-07 22:20 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] Re: [Csnd] Clear SPOUT buffer |
I guess if you stop calling PerformKsmps() you may have a spout with data in it, and if
you keep passing this to sink, it will be repeatedly play the samples there. That's a possibility. Then you just memset it.
While calling PerformKsmps() that won't happen, though.
Prof. Victor Lazzarini
Maynooth University
Ireland
On 7 Jun 2020, at 19:35, Rory Walsh <rorywalsh@ear.ie> wrote:
|