| Thanks for the workarounds for DirectX for PortAudio, which I did not know
about. I will definitely try them. But I can get a little better than 40 ms
latency just with wmme, so I am more interested now in asio.
----- Original Message -----
From:
To: "Csound Developers Discussion List"
Sent: Sunday, May 09, 2004 11:09 PM
Subject: [CSOUND-DEV:4639] Portaudio and directsound
> Hi,
> I'm pretty sure Michael and others have gotten this far, but just wanted
to
> check.
> I built portaudio with directx by changing the following:
> Added in mmsystem.h:
> #define _LPCWAVEFORMATEX_DEFINED
> in line 1014
>
> And commented out line 1899 in dsound.h:
> //typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX;
>
> This way portaudio builds successfully with directx and all the pa_tests
run
> fine with minimum latency of about 40ms.
> but... csound5 behaves strangely (with trappedrt.csd). I get a crash after
> calculating the ftables (when audio should start), but csound goes on and
on
> compiling, but not producing any sound, and very fast (like it was doing
> offline instead of rt processing).
> I've tried different buffer sizes, but that doesn't seem to be the
problem.
>
> Any ideas?
> Cheers,
> Andres
>
> |