[PD-cvs] externals/postlude/dssi/src dssi~.c, NONE, 1.1 dssi~.h, NONE, 1.1

Jamie Bullock postlude at users.sourceforge.net
Thu Feb 2 21:55:29 CET 2006


Update of /cvsroot/pure-data/externals/postlude/dssi/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12186/src

Added Files:
	dssi~.c dssi~.h 
Log Message:


--- NEW FILE: dssi~.c ---
/* dssi~ - A DSSI host for PD 
 * 
 * Copyright 2006 Jamie Bullock and others 
 *
 * This file incorporates code from the following sources:
 * 
 * jack-dssi-host (BSD-style license): Copyright 2004 Chris Cannam, Steve Harris and Sean Bolton.
 *		   
 * Hexter (GPL license): Copyright (C) 2004 Sean Bolton and others.
 * 
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
[...1701 lines suppressed...]
#if DEBUG
		post("calling osc_program_handler"); 
#endif
        return osc_program_handler(x, argv, instance);

    } else if (!strcmp(method, "update") && argc == 1 && !strcmp(types, "s")){
#if DEBUG
		post("calling osc_update_handler"); 
#endif
        return osc_update_handler(x, argv, instance);
	

    } else if (!strcmp(method, "exiting") && argc == 0) {

        return osc_exiting_handler(x, argv, instance);
    }

    return osc_debug_handler(path, types, argv, argc, data, x);
}


--- NEW FILE: dssi~.h ---
/* dssi~ - A DSSI host for PD 
 * 
 * Copyright 2006 Jamie Bullock and others 
 *
 * This file incorporates code from the following sources:
 * 
 * jack-dssi-host (BSD-style license): Copyright 2004 Chris Cannam, Steve Harris and Sean Bolton.
 *		   
 * Hexter (GPL license): Copyright (C) 2004 Sean Bolton and others.
 * 
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#include "m_pd.h"
#include "dssi.h"
#include <dlfcn.h>
#include <lo/lo.h> 
#include <unistd.h>
#include <stdio.h>
#define __USE_GNU /* for strndup */
#include <string.h>

#include <stdlib.h> /*for exit()*/
#include <sys/types.h> /* for fork() */
#include <signal.h> /* for kill() */
#include <dirent.h> /* for readdir() */

#define DX7_VOICE_SIZE_PACKED 	128 /*From hexter_types.h by Sean Bolton */
#define DX7_DUMP_SIZE_BULK 	4096+8


#define VERSION 0.8
#define EVENT_BUFSIZE 1024
#define OSC_BASE_MAX 1024
#define TYPE_STRING_SIZE 20 /* Max size of event type string (must be two more bytes than needed) */
#define DIR_STRING_SIZE 1024 /* Max size of directory string */
#define ASCII_n 110
#define ASCII_p 112
#define ASCII_c 99
#define ASCII_b 98

#define LOADGUI 1 /* FIX: depracate this */
#define DEBUG 0






More information about the Pd-cvs mailing list