Csound Csound-dev Csound-tekno Search About

[Cs-dev] Supress message output from API

Date2014-10-25 21:38
FromAndres Cabrera
Subject[Cs-dev] Supress message output from API
AttachmentsNone  None  
Hi,

What's the way to supress message output from the API?

I have tried:

    csoundSetOption(csound, "-m0");
    csoundSetOption(csound, "-O null");
    csoundSetOption(csound, "--logfile=null");

But none work ( I am using them before csoundStart(), would that make a difference?).

Cheers,
Andrés

Date2014-10-25 21:44
FromVictor Lazzarini
SubjectRe: [Cs-dev] Supress message output from API
You can try setting a non-op default message callback:

static void nomsg_callback(CSOUND *csound,
  int attr, const char *format, va_list args){ return; }

...
csoundSetDefaultMessageCallback(nomsg_callback);
...


The logfile options are (at the moment) implemented by the csound command-line frontend only.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 25 Oct 2014, at 21:38, Andres Cabrera  wrote:
> 
> Hi,
> 
> What's the way to supress message output from the API?
> 
> I have tried:
> 
>     csoundSetOption(csound, "-m0");
>     csoundSetOption(csound, "-O null");
>     csoundSetOption(csound, "--logfile=null");
> 
> But none work ( I am using them before csoundStart(), would that make a difference?).
> 
> Cheers,
> Andrés
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourc