Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Important API & OPCODEDIR problems

Date2005-10-02 22:47
From"Michael Gogins"
SubjectRe: [Cs-dev] Important API & OPCODEDIR problems
In your case it sounds like it should be

export OPCODEDIR=/csound5:/csound5/opcodes

You are on Linux or Mac, right? On windows that would be

set OPCODEDIR=c:\csound5\;c:\csound5\opcodes

probably.

In other words, you need both directories in OPCODEDIR.

Regards,
Mike

----- Original Message ----- 
From: "Iain Duncan" 
To: 
Sent: Saturday, October 01, 2005 9:55 PM
Subject: [Cs-dev] Important API & OPCODEDIR problems


> Hey everyone, I reported this a bit ago, but Istvan thought maybe it was 
> just not clean builds or problems with API compatibility in my code, so 
> I did an eradicate, fresh build as of today's check out, and test with 
> totally simple host and csd, both of which are attached. Note, this 
> example *used* to work in both real time and deferred with 
> OPCODEDIR=/csound5. This is on linux.
> 
> If OPCODEDIR=/csound5/Opcodes :
> 
> - my api example works with rendering ( "csound fl_controller.csd" )
> - command line csound works with rendering ( as above )
> - -odac does NOT work, with either api or command line, either portaudio 
> or alsa
> *** error: unknown rtaudio module 'PortAudio'
> or
> *** error: unknown rtaudio module 'alsa'
> 
> 
> If OPCODEDIR=/csound5 :
> 
> - command line works with both renderring and -odac
> - my api example does not work with either renderring or -odac
> 
> Error in pre-initialization function of module 'libsrconv.so'
> Error in pre-initialization function of module 'libsndinfo.so'
> Error in pre-initialization function of module 'libscale.so'
> 
> So, as far as I can tell, the API is currently unusable in real time, 
> and to be used in deferred time requires a reexport of OPCODEDIR. What 
> is OPCODEDIR supposed to be?
> 
> Thanks
> Iain
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-02 22:59
FromIstvan Varga
SubjectRe: [Cs-dev] Important API & OPCODEDIR problems
OPCODEDIR cannot be more than one directory.

Michael Gogins wrote:

> In your case it sounds like it should be
> 
> export OPCODEDIR=/csound5:/csound5/opcodes
> 
> You are on Linux or Mac, right? On windows that would be
> 
> set OPCODEDIR=c:\csound5\;c:\csound5\opcodes
> 
> probably.
> 
> In other words, you need both directories in OPCODEDIR.


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-03 00:35
FromIain Duncan
SubjectRe: [Cs-dev] Important API & OPCODEDIR problems
Ok, so the question is, does the api work for anyone from a host right 
now? And if so, could I see the code and csound settings so I can test 
it out here?

Thanks
Iain

Istvan Varga wrote:
> OPCODEDIR cannot be more than one directory.
> 
> Michael Gogins wrote:
> 
>> In your case it sounds like it should be
>>
>> export OPCODEDIR=/csound5:/csound5/opcodes
>>
>> You are on Linux or Mac, right? On windows that would be
>>
>> set OPCODEDIR=c:\csound5\;c:\csound5\opcodes
>>
>> probably.
>>
>> In other words, you need both directories in OPCODEDIR.
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-03 05:51
FromDavid Akbari
SubjectRe: [Cs-dev] Important API & OPCODEDIR problems
On Oct 2, 2005, at 7:35 PM, Iain Duncan wrote:

> Ok, so the question is, does the api work for anyone from a host right 
> now? And if so, could I see the code and csound settings so I can test 
> it out here?
>

Victor Lazzarini's [csoundapi~] object for Pd; the Csound5 api works 
amazingly, and is robust. What is better is that the code is a part of 
the canonical CVS sources. If you're into the patcher family of 
languages, I'd suggest you start there.


-David



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-03 08:37
FromIain Duncan
SubjectRe: [Cs-dev] Important API & OPCODEDIR problems
>> Ok, so the question is, does the api work for anyone from a host right 
>> now? And if so, could I see the code and csound settings so I can test 
>> it out here?
> 
> Victor Lazzarini's [csoundapi~] object for Pd; the Csound5 api works 
> amazingly, and is robust. What is better is that the code is a part of 
> the canonical CVS sources. If you're into the patcher family of 
> languages, I'd suggest you start there.

Thanks David, but I'm specifically trying to get an example of a C/C++ 
host working. Something's just gotten wacky, because this used to work.

Iain


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-10-03 10:00
FromIstvan Varga
SubjectRe: [Cs-dev] Important API & OPCODEDIR problems
Iain Duncan wrote:

> Ok, so the question is, does the api work for anyone from a host right 
> now? And if so, could I see the code and csound settings so I can test 
> it out here?

It surely works for the simple command line 'csound' which is also a host.
So, you either still have problems with an inconsistent build and presence
of old binaries somewhere, or the problem is platform (x86-64) specific.


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net