Right.

I have seen these issues with the performace thread. So maybe the issues are not the same.

Cheers,
Andrés


On Tue, Mar 4, 2014 at 3:06 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
How is the pause done (using CsoundPerformanceThread()?)

Victor
On 4 Mar 2014, at 21:44, Andres Cabrera <mantaraya36@gmail.com> wrote:

> Hi,
>
> I have noticed this problem with coreaudio (not a porblem with portaudio or jack), that the buffers are not flushed to 0 when playing is paused. >From what I looked, it's not trivial to fix, but maybe someone else can look.
>
> Cheers,
> Andrés
>
>
> On Sat, Mar 1, 2014 at 11:55 AM, scarbo <alessandropetrolati@me.com> wrote:
> Hello everybody, I have this gib problem:
> This is the callback in my iOs app.
> The code work fine as expected in realtime, also when I run application
> through Cubasis Inter-Audio app work fine but when I freeze in Cubasis
> (audio callback is called as soon possible), the incoming audio is
> truncated, stuttering in the waveform. Could be something related to
> csoundPerformKsmps thread?
> Thanks in advances.
>
>
>     csdata *cdata = (csdata *) inRefCon;
>     int ret = cdata->ret, nchnls = cdata->nchnls;
>     float coef = (float) INT_MAX / csoundGet0dBFS(cdata->cs);
>     CSOUND *cs = cdata->cs;
>
>     int ksmps = csoundGetKsmps(cs);
>     MYFLT *spin = csoundGetSpin(cs);
>     MYFLT *spout = csoundGetSpout(cs);
>
>     // Get a pointer to the dataBuffer of the AudioBufferList
>         AudioUnitSampleType *outL = (AudioUnitSampleType
> *)ioData->mBuffers[0].mData;
>     AudioUnitSampleType *outR = (AudioUnitSampleType
> *)ioData->mBuffers[1].mData;
>
>         // Perform ksmps bock
>     if(!ret) {
>         ret = csoundPerformKsmps(cs);
>
>     } else {
>         cdata->running = false;
>     }
>
>         // Symple copy spout in iOs buffer
>         for (UInt32 i = 0; i < ksmps; i++) {
>
>         outL[i] = (AudioUnitSampleType) (MYFLT)(spout[i * nchnls] * coef);
>         outR[i] = (AudioUnitSampleType) (MYFLT)(spout[(i * nchnls) + 1] *
> coef);
>     }
>
>     cdata->ret = ret;
>     return  noErr;
>
>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/csoundPerformKsmp-question-proposal-tp1124595p5732903.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
> With Perforce, you get hassle-free workflows. Merge that actually works.
> Faster operations. Version large binaries.  Built-in WAN optimization and the
> freedom to use Git, Perforce or both. Make the move to Perforce.
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel