[Portaudio] Is port audio appropriate for real time synth?

Alan Wolfe alan.wolfe at gmail.com
Wed Jul 14 03:05:18 EDT 2010


oh ok, i'll give the current snapshot a try then (:

Would you happen to know if the current snapshot supports blocking i/o
for ASIO, and also would you happen to know if you MUST specify a
callback function when opening a stream w/ ASIO?

Thanks for the responses you guys

On Tue, Jul 13, 2010 at 11:54 PM, Ross Bencina
<rossb-lists at audiomulch.com> wrote:
> Hi Alan
>
> Sorry, I just lost the previous copy of my reply... this one is shorter..
>
>>#1 - when i compile i get the warning about memory bariers and using
>> ALLOW_SMP_DANGERS.  So i reluctantly do what it says and then also have to
>> comment out the comments in pa_ringbuffer.c which look like below:
>
> Make sure you're using current snapshot. It definitely has memory barriers
> for different MSVC configurations, I checked.
>
>>#2 - Moving past that, things compile fine, however at link time it
>> complains about being unable to find timeGetTime.  I'm using MSVC 2008
>> express if that makes a difference.
> Make sure WIN32 is defined in your project settings custom defines.  If that
> doen't work you can add winmm.lib to the libraries list (but you _should_
> make sure WIN32 is defined I think.
>
>
> Ross.
>
>
>
>
>
>
> ----- Original Message -----
> From: Alan Wolfe
> To: Portaudio Mailing List
> Sent: Wednesday, July 14, 2010 2:42 PM
> Subject: Re: [Portaudio] Is port audio appropriate for real time synth?
> more noobish follow up hehe...
>
> i got the sdk from steinberg.  i had to create an account but then was able
> to download it (yay)
>
> anyhow 2 problems when following the instructions here
> http://www.portaudio.com/trac/wiki/TutorialDir/Compile/WindowsASIOMSVC
>
> #1 - when i compile i get the warning about memory bariers and using
> ALLOW_SMP_DANGERS.  So i reluctantly do what it says and then also have to
> comment out the comments in pa_ringbuffer.c which look like below:
>
> #      warning Memory barriers not defined on this system or system unknown
> #      warning For SMP safety, you should fix this.
>
> #2 - Moving past that, things compile fine, however at link time it
> complains about being unable to find timeGetTime.  I'm using MSVC 2008
> express if that makes a difference.
>
> 1>pa_asio.obj : error LNK2019: unresolved external symbol
> __imp__timeGetTime at 0 referenced in function "double __cdecl
> GetStreamTime(void *)" (?GetStreamTime@@YANPAX at Z)
> 1>pa_win_util.obj : error LNK2001: unresolved external symbol
> __imp__timeGetTime at 0
> 1>C:\Users\Atrix256\Desktop\Pa Stuff\test\Debug\test.exe : fatal error
> LNK1120: 1 unresolved externals
>
> i notice on googling this that people had this problem on various *nix
> distros as well in 2007
> (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406754) but looking at the
> code it doesnt even seem to try to support msvc
>
> #if defined(__APPLE__)
>   //...
> #elif defined(__GNUC__)
>   //...
> #else
>   //  SHOW ERROR ABOUT DANGERS
> #endif
>
> so anyhow, i thought you guys might want to know about this?
>
> i replaced timeGetTime with the equivelant using GetTickCount (which i saw
> used elsewhere in the code) and launched patest_saw.c and it didn't report
> any errors, but it didn't make any sounds either unfortunately!
>
> Lots of places for things to go wrong hehe... anyone have any ideas whats up
> with this?
>
> Thanks and sorry for the noobery :P
>
> On Tue, Jul 13, 2010 at 8:23 PM, Alan Wolfe <alan.wolfe at gmail.com> wrote:
>>
>> Sorry I'm kind of noobish... i've been trying to go the ASIO route but
>> with no success.
>>
>> I found ASIO4ALL which you were talking about but all it gave me was dll's
>> and the PA "how to compile with ASIO support" says i need the steinberg ASIO
>> sdk, which of course requires a login and im sure costs a good amount of
>> money to get an account (right?)
>>
>> Is there a way to get this working that i'm overlooking?
>>
>> thank you again you guys,
>> Alan
>>
>> On Mon, Jul 12, 2010 at 9:41 AM, Alan Wolfe <alan.wolfe at gmail.com> wrote:
>>>
>>> Yep it is indeed windows.
>>>
>>> Thanks you guys, i'll give the asio route a shot (:
>>>
>>> On Mon, Jul 12, 2010 at 5:26 AM, Alberto di Bene <dibene at usa.net> wrote:
>>>>
>>>> On 7/12/2010 5:12 AM, Alan Wolfe wrote:
>>>>
>>>>> Am i doin something wrong?  How do you get good response time without
>>>>> getting this weird sound problem?
>>>>
>>>> You don't say which platform you are using. Should it be Windows, then
>>>> use
>>>> the ASIO interface, which has a very low latency.
>>>>
>>>> Alberto
>>>>
>>>> _______________________________________________
>>>> Portaudio mailing list
>>>> Portaudio at music.columbia.edu
>>>> http://music.columbia.edu/mailman/listinfo/portaudio
>>>
>>
>
> ________________________________
>
> _______________________________________________
> Portaudio mailing list
> Portaudio at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/portaudio
>
> _______________________________________________
> Portaudio mailing list
> Portaudio at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/portaudio
>


More information about the Portaudio mailing list