Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csoundapi~ on Windows

Date2005-06-27 23:20
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundapi~ on Windows
when I do +-rtaudio=winmm csound complains that
it can't find the module, although it is in the OPCODEDIR.
It was late in the day and I did not investigate, will try
again
tomorrow.

Victor


>
> Victor Lazzarini wrote:
>
> > I was originally thinking of building csound with minGW
> > but then I got confused with what to download;
>
> There is an installer (MinGW-4.1.0.exe) at
> http://www.mingw.org/download.shtml that will download any
> of the packages needed. You should also install
> MSYS-1.0.10.exe.
>
> > so I then decided to try again to build a MSVC version
> and it
>  > worked for me for the first time (although surprisingly
> not the
>  > rtwinmm module, but portaudio seems fine for the
> moment).
>
> What problems did you have with rtwinmm ?
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux
> Migration Strategies from IBM. Find simple to follow
> Roadmaps, straightforward articles, informative Webcasts
> and more! Get everything you need to get up to speed,
> fast.
> http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-27 23:41
FromIstvan Varga
SubjectRe: [Cs-dev] csoundapi~ on Windows
Victor Lazzarini wrote:

> when I do +-rtaudio=winmm csound complains that
> it can't find the module, although it is in the OPCODEDIR.
> It was late in the day and I did not investigate, will try
> again tomorrow.

This is easy to fix: the functions csoundModuleCreate() and
csoundModuleInit() should be made PUBLIC.
By the way, what other changes did you need to the sources ?


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-28 09:49
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundapi~ on Windows
I have not committed them yet, but just simple things like changing
the order of the #include statements at the top of c++ files (they
generated a problem with , where the compiler complained
that templates cannot be extern "C". Added "NULL" to the initialisation
of the null OENTRY in ftest.c and #defined round as (int) for MSVC,
because there is no 'round' in MSVC, vst4cs.cpp.

added PUBLIC to one of the API functions in cfgvar.h, that was missing.

Most of the changes went into SConstruct to libs etc. I added a MSVC
option to it, so that none of the changes affect gcc on Windows.

I will add the PUBLIC to csoundModule...(). Thanks for the tip.

Victor


At 23:41 27/06/2005, you wrote:
>Victor Lazzarini wrote:
>
>>when I do +-rtaudio=winmm csound complains that
>>it can't find the module, although it is in the OPCODEDIR.
>>It was late in the day and I did not investigate, will try
>>again tomorrow.
>
>This is easy to fix: the functions csoundModuleCreate() and
>csoundModuleInit() should be made PUBLIC.
>By the way, what other changes did you need to the sources ?
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-28 09:57
FromVictor Lazzarini
SubjectRe: [Cs-dev] csoundapi~ on Windows
Also DWORD_PTR is undefined in MSVC (rtwinmm.c). The actual cast
should be (according to the prototype) a (DWORD). Not sure it matters,
since it's NULL anyway.

Victor

At 23:41 27/06/2005, you wrote:
>Victor Lazzarini wrote:
>
>>when I do +-rtaudio=winmm csound complains that
>>it can't find the module, although it is in the OPCODEDIR.
>>It was late in the day and I did not investigate, will try
>>again tomorrow.
>
>This is easy to fix: the functions csoundModuleCreate() and
>csoundModuleInit() should be made PUBLIC.
>By the way, what other changes did you need to the sources ?
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-28 10:04
FromVictor Lazzarini
Subject[Cs-dev] rtwinmm
just to let you know that the module is working here now with the MSVC build

At 09:57 28/06/2005, you wrote:
>Also DWORD_PTR is undefined in MSVC (rtwinmm.c). The actual cast
>should be (according to the prototype) a (DWORD). Not sure it matters,
>since it's NULL anyway.
>
>Victor
>
>At 23:41 27/06/2005, you wrote:
>>Victor Lazzarini wrote:
>>
>>>when I do +-rtaudio=winmm csound complains that
>>>it can't find the module, although it is in the OPCODEDIR.
>>>It was late in the day and I did not investigate, will try
>>>again tomorrow.
>>
>>This is easy to fix: the functions csoundModuleCreate() and
>>csoundModuleInit() should be made PUBLIC.
>>By the way, what other changes did you need to the sources ?
>>
>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>>from IBM. Find simple to follow Roadmaps, straightforward articles,
>>informative Webcasts and more! Get everything you need to get up to
>>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>Victor Lazzarini
>Music Technology Laboratory
>Music Department
>National University of Ireland, Maynooth
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-28 10:31
FromIstvan Varga
SubjectRe: [Cs-dev] csoundapi~ on Windows
Victor Lazzarini wrote:
> Also DWORD_PTR is undefined in MSVC (rtwinmm.c). The actual cast
> should be (according to the prototype) a (DWORD). Not sure it matters,
> since it's NULL anyway.

The DWORD_PTR is used according to Microsoft documentation at
   http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_waveoutopen.asp
However, the prototype also uses DWORD (and not DWORD_PTR) in the
MinGW headers. Anyway, I will just use 0 and let the compiler cast
to whatever type is used in the headers.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-28 10:46
FromIstvan Varga
SubjectRe: [Cs-dev] csoundapi~ on Windows
Victor Lazzarini wrote:

> I have not committed them yet, but just simple things like changing
> the order of the #include statements at the top of c++ files (they
> generated a problem with , where the compiler complained
> that templates cannot be extern "C". Added "NULL" to the initialisation
> of the null OENTRY in ftest.c and #defined round as (int) for MSVC,
> because there is no 'round' in MSVC, vst4cs.cpp.

round is not used in vst4cs.cpp (I already removed it some time ago).
However, I found uses of round() in a few other places: InOut/widgets.cpp,
Opcodes/vst4cs/src/vsthost.cpp, and various CsoundVST files.
> 
> added PUBLIC to one of the API functions in cfgvar.h, that was missing.

Was that csoundDeleteAllGlobalConfigurationVariables() ?
It is already PUBLIC in CVS.

> I will add the PUBLIC to csoundModule...(). Thanks for the tip.

I have done it already.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net