Xojo Conferences
XDCMay2019MiamiUSA

[MBS] PortAudioStreamRecorderMBS issue (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Exception Handling for abAddressBookMBS.constructor
Next thread: [MBS] [ANN] MBS Xojo Conference


Re: [MBS] IconImageMBS slow 10.9   -   Garth Hjelte
  [MBS] PortAudioStreamRecorderMBS issue   -   Garth Hjelte
   Re: [MBS] PortAudioStreamRecorderMBS issue   -   Christian Schmitz
    Re: [MBS] PortAudioStreamRecorderMBS issue   -   Garth Hjelte
     [MBS] [ANN] 14.3pr5   -   Christian Schmitz
    Re: [MBS] PortAudioStreamRecorderMBS issue   -   Christian Schmitz
    Re: [MBS] PortAudioStreamRecorderMBS issue   -   Garth Hjelte
     [MBS] [ANN] 14.2pr1   -   Christian Schmitz

[MBS] PortAudioStreamRecorderMBS issue
Date: 07.08.14 13:47 (Thu, 07 Aug 2014 07:47:25 -0500)
From: Garth Hjelte
I'm having a little issue with PortAudioStreamRecorderMBS, plugins 1.41.

When I run my app in Leopard 10.5, it works great. This is on an older Mac Mini with Core 1.66 Core Duo (not 2) 4GB RAM. However when running in 10.6 or 10.7, on another computer (MBP i5 4GB RAM), I get this added blank spot in the final data (I collect via ReadFrames and append it to a master memoryblock). I'm not using an external sound card, just using the built-in input.

Investigating, it's always on the 10th reception of ReadFrames that the data received is blank. Now this isn't bad data, it's just an extra 10240 frames (the usual reception) with all zeros. I checked the Timestamp on the stream and it is continuing upward (it isn't the same for the blank ReadFrames).

And it happens all the time. But only on this computer and only in 10.6 and 10.7 (not 10.5 on the other computer).

Any idea what this could be? Should I pose this to the PortAudio list?

Garth Hjelte
Sampler User

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PortAudioStreamRecorderMBS issue
Date: 07.08.14 21:47 (Thu, 7 Aug 2014 22:47:32 +0200)
From: Christian Schmitz

Am 07.08.2014 um 14:47 schrieb Garth Hjelte <<email address removed>>:

> And it happens all the time. But only on this computer and only in 10.6 and 10.7 (not 10.5 on the other computer).
>
> Any idea what this could be? Should I pose this to the PortAudio list?

No idea.
You can of course there.

And maybe I could schedule to update plugin to newer PortAudio lib anyway.

Sincerely
Christian

Re: [MBS] PortAudioStreamRecorderMBS issue
Date: 10.08.14 05:36 (Sat, 09 Aug 2014 23:36:19 -0500)
From: Garth Hjelte
At 11:26 AM 8/8/2014, you wrote:

>> I suppose the question is: why is PortAudio supplying you with an extra buffer of zeros - or, why are you giving me a chunk of zeros (perhaps waiting on PortAUdio being late)?
>
>Well, I can try and see if I have this myself.
>But it sounds like a problem somewhere deep in the audio processing.
>
>I'll update to a newer version of PortAudio and maybe it fixes the problem.

(Finally got a chance to think properly)

I'll work up a test project, shouldn't be hard. Although I'm on vacation until Aug 16, so it may not be for awhile. The test project will help clear things up, either on this end or yours.

Garth Hjelte
Sampler User

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PortAudioStreamRecorderMBS issue
Date: 08.08.14 17:26 (Fri, 8 Aug 2014 18:26:01 +0200)
From: Christian Schmitz

Am 08.08.2014 um 00:24 schrieb Garth Hjelte <<email address removed>>:

>
> OK, sounds good. It's a little difficult to ask because you aren't simply shimming the calls; you have your own implementation. ReadFrames() doesn't exist in PortAudio, I suppose you are reading off the ring buffer.

Yes. It's simply the ring buffer used here.

> I suppose the question is: why is PortAudio supplying you with an extra buffer of zeros - or, why are you giving me a chunk of zeros (perhaps waiting on PortAUdio being late)?

Well, I can try and see if I have this myself.
But it sounds like a problem somewhere deep in the audio processing.

I'll update to a newer version of PortAudio and maybe it fixes the problem.

Sincerely
Christian

Re: [MBS] PortAudioStreamRecorderMBS issue
Date: 07.08.14 23:24 (Thu, 07 Aug 2014 17:24:14 -0500)
From: Garth Hjelte
At 03:47 PM 8/7/2014, you wrote:

>Am 07.08.2014 um 14:47 schrieb Garth Hjelte <<email address removed>>:
>
>> And it happens all the time. But only on this computer and only in 10.6 and 10.7 (not 10.5 on the other computer).
>>
>> Any idea what this could be? Should I pose this to the PortAudio list?
>
>No idea.
>You can of course there.
>
>And maybe I could schedule to update plugin to newer PortAudio lib anyway.

OK, sounds good. It's a little difficult to ask because you aren't simply shimming the calls; you have your own implementation. ReadFrames() doesn't exist in PortAudio, I suppose you are reading off the ringbuffer. I suppose the question is: why is PortAudio supplying you with an extra buffer of zeros - or, why are you giving me a chunk of zeros (perhaps waiting on PortAUdio being late)?

It's possible it's a computer-specific issue, but I did try it on two different OS's and got the same thing. It's strange that such a thing would be mechanical.

I'm just a dumb user... =) I asked the list, see what they say. Ross is pretty helpful.

Garth Hjelte
Sampler User

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info