update to work with Pd 0.52

This commit is contained in:
Miller Puckette 2021-08-24 22:06:05 -07:00
parent efa1af754a
commit 414ec2073d
3 changed files with 20 additions and 10 deletions

View file

@ -21,6 +21,10 @@ set(COMPONENT_SRCS "espd.c pdmain.c \
../pd/src/d_ugen.c \
../pd/src/d_resample.c \
../pd/src/d_soundfile.c \
../pd/src/d_soundfile_wave.c \
../pd/src/d_soundfile_aiff.c \
../pd/src/d_soundfile_caf.c \
../pd/src/d_soundfile_next.c \
../pd/src/d_global.c \
../pd/src/d_osc.c \
../pd/src/d_ctl.c \
@ -50,7 +54,7 @@ set(COMPONENT_SRCS "espd.c pdmain.c \
set(COMPONENT_ADD_INCLUDEDIRS ".")
set(COMPONENT_ADD_CFLAGS "-DPD -DHAVE_UNISTD_H -DHAVE_ALLOCA_H \
-Wno-unused-variable")
set(COMPONENT_ADD_CFLAGS "-DPD -DHAVE_UNISTD_H -DHAVE_ALLOCA_H -DPD_HEADLESS\
-DSYMTABHASHSIZE=512 -DSTUPID_SORT -Wno-unused-variable")
register_component()

View file

@ -76,7 +76,7 @@ void senddacs( void)
ESP_LOGE(TAG, "error writing");
}
void pd_bt_writeback(const unsigned char *s, int length);
void pd_bt_writeback(unsigned char *s, int length);
void pdmain_print( const char *s)
{
@ -104,7 +104,6 @@ void app_main(void)
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL2,
};
i2s_pin_config_t i2s_pin_cfg = {0};
int zz = 0, ret;
pdmain_init();
@ -127,11 +126,14 @@ void app_main(void)
while (1)
{
/* if (!((zz++)%1000))
{
trymem(5);
ESP_LOGI(TAG, "tick");
} */
/*
int zz = 0;
if (!((zz++)%1000))
{
trymem(5);
ESP_LOGI(TAG, "tick");
}
*/
pdmain_tick();
senddacs();
}
@ -144,7 +146,7 @@ void pd_bt_dispatch(char *data, size_t size);
static uint32_t pd_bt_writehandle;
void pd_bt_writeback(const unsigned char *s, int length)
void pd_bt_writeback(unsigned char *s, int length)
{
#if 1
if (pd_bt_writehandle)

View file

@ -11,6 +11,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
void pd_init(void);
void glob_open(t_pd *ignore, t_symbol *name, t_symbol *dir, t_floatarg f);
@ -319,6 +320,9 @@ void *canvas_undo_set_recreate(t_canvas *x,
t_gobj *y, int old_pos) { return (0); }
void canvas_noundo(t_canvas *x) {}
void canvas_properties(t_canvas *x) {}
void pd_undo_set_objectstate(t_canvas *canvas, t_pd *x, t_symbol *s,
int undo_argc, t_atom *undo_argv,
int redo_argc, t_atom *redo_argv) {}
void glist_select(t_glist *x, t_gobj *y) {}
void glist_deselect(t_glist *x, t_gobj *y) {}