[Cs-dev] Supress message output from API
| Date | 2014-10-25 21:38 |
| From | Andres Cabrera |
| Subject | [Cs-dev] Supress message output from API |
| Attachments | None None |
Hi, What's the way to supress message output from the API?csoundSetOption(csound, "-m0"); csoundSetOption(csound, "-O null"); csoundSetOption(csound, "--logfile=null"); Andrés |
| Date | 2014-10-25 21:44 |
| From | Victor Lazzarini |
| Subject | Re: [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 |