1 Feb 2006 14:04
Re: Portaudio, ASIO and Borland Builder 6
Bruce Wiggins <bruce.wiggins <at> gmail.com>
2006-02-01 13:04:12 GMT
2006-02-01 13:04:12 GMT
ok, as an update. I've got it to work, but I don't really like the fact that I've had to comment some lines out of combase.h!
started a console project in BC++ 6
added a define for Win32 - this fixed the #if MAC problems.
Then, I couldn't compile with iasiothiscallresolver.h included so I tried without it.
This gave me an access violation on the line in asio.cpp:
info->driverVersion = theAsioDriver->getDriverVersion();
so, in order to include iasiothiscallresolver.h I've had to comment out the lines:
static inline LONG InterlockedIncrement( volatile LONG * plong )
{ return InterlockedIncrement( const_cast<LONG*>( plong ) ); }
static inline LONG InterlockedDecrement( volatile LONG * plong )
{ return InterlockedDecrement( const_cast<LONG*>( plong ) ); }
static inline LONG InterlockedExchange( volatile LONG * plong, LONG new_value )
{ return InterlockedExchange( const_cast<LONG*>( plong ), new_value ); }
as they have been previously declared in winbase.h
Is this the only way to fix the problem, or is there another way that means I can but combase.h back to what it should be!
cheers
Bruce
On 31/01/06, Bruce Wiggins <bruce.wiggins <at> gmail.com> wrote:
Hi, as I'm sure this question comes up allot (I did search through the mailing list archives, but didn't seem to find a good answer!)I'm trying to make a simple application that takes in N ASIO channels of audio and kicks out M channels of ASIO audio. I am having trouble getting anything ASIO based to compile under Borland Builder 6.I have tried using the IASIOThiscallResolver, but the problem seems to be related to the fact that all the code surrounded by declarations such as #if MAC are not being ignored as they should be.Has anyone got ASIO, Portaudio and Borland builder to work together, and if so, how did you do it?Thanks in advanceBruce
--
Dr Bruce Wiggins
Signal Processing Applications Group
http://sparg.derby.ac.uk
University of Derby
UK
RSS Feed