Bye sayVIMS, hello sayOSC, OSC dynamic namespaces, revamped event handlers, bugfixes in livido host implementation, bugfixes in vevosample, some memory leaks fixed

git-svn-id: svn://code.dyne.org/veejay/trunk@593 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2006-09-02 19:43:38 +00:00
parent 50bad29ab1
commit 9ad76c67d9
28 changed files with 2781 additions and 3917 deletions

View File

@@ -18,7 +18,7 @@
*/
#ifndef VEVOSAMPLE_H
#define VEVOSAMPLE_H
#define SAMPLE_CHAIN_LEN 2
#define SAMPLE_CHAIN_LEN 5
typedef struct
{
int w;
@@ -44,13 +44,13 @@ void samplebank_free();
int samplebank_size();
void sample_delete_ptr(void *info);
int sample_delete(int id);
void sample_set_property_ptr( void *ptr, const char *key, int atom_type, void *value );
int sample_set_property_ptr( void *ptr, const char *key, int atom_type, void *value );
void sample_set_property( int sample_id, const char *key, int atom_type, void *value );
void sample_get_property( int sample_id, const char *key, void *dst );
void *sample_new( int type );
void sample_free(int sample_id);
int sample_open( void *sample, const char *token, int extra_token, sample_video_info_t *settings );
int sample_get_frame( void *current_sample, VJFrame *slot );
int sample_get_frame( void *current_sample, void *slot );
void sample_fx_set_parameter( int id, int fx_entry, int param_id,int n, void *data );
void sample_fx_get_parameter( int id, int fx_enty,int param_id,int idx, void *dst );
void sample_toggle_process_entry( void *data, int fx_entry, int v );
@@ -60,9 +60,8 @@ int sample_get_fx_alpha( void *data, int fx_entry );
void sample_set_fx_alpha( void *data, int fx_entry, int v );
void sample_set_itu601( void *current_sample, int status );
int sample_fx_set( void *info, int fx_entry, const int new_fx );
void sample_set_input_frame( void *info, int fx_entry, int seq_num, VJFrame *frame );
void sample_process_fx_chain( void *srd );
int sample_fx_del( int id, int fx_entry );
int sample_fx_del( void *veejay, int id, int fx_entry );
int sample_xml_load( const char *filename, void *samplebank );
int samplebank_xml_save( const char *filename );
void *sample_get_fx_port( int id, int fx_entry );
@@ -97,16 +96,30 @@ int sample_get_key_ptr( void *sample );
int sample_edl_delete( void *current_sample, uint64_t start, uint64_t end );
int sample_edl_paste_from_buffer( void *current_sample, uint64_t insert_at );
int sample_edl_cut_to_buffer( void *current_sample, uint64_t start_pos, uint64_t end_pos );
int sample_configure_recorder( void *sample, int format, const char *filename, int nframes, sample_video_info_t *ps );
int sample_start_recorder( void *sample, sample_video_info_t *ps );
int sample_configure_recorder( void *sample, int format, const char *filename, int nframes );
int sample_start_recorder( void *sample );
int sample_stop_recorder( void *sample );
int sample_record_frame( void *sample, VJFrame *frame, uint8_t *audio_buffer, int a_len );
int sample_record_frame( void *sample, void *frame, uint8_t *audio_buffer, int a_len );
char *sample_get_recorded_file( void *sample );
int sample_new_osc_sender(void *sample, const char *addr, const char *port );
void sample_close_osc_sender( void *sample );
void sample_add_osc_path( void *sample, const char *path, int fx_entry_id );
void sample_del_osc_path( void *sample, int fx_entry_id );
void sample_send_osc_path( void *sample, void *fx_entry );
char *sample_describe_param( void *srd, int fx_entry, int p );
int sample_set_param( void *srd, int fx_entry, int p, const char format[] , ... );
void sample_set_user_data( void *sample, void *data, int id );
void sample_set_property_from_path( void *sample, const char *path, void *value );
char *sample_property_format_osc( void *sample, const char *path );
void sample_init_namespace( void *data, void *sample , int id );
int sample_osc_property_calls_event( void *sample, const char *path, char *types, void **argv[] );
typedef void (*vevo_event_f)(void *ptr, const char *path,const char *types, void **argv);
int sample_osc_new_sample_event( void *sample,
const char *key,
const char *fmt,
const char **args,
vevo_event_f *func );
int sample_osc_verify_format( void *vevo_port, char const *types );
#endif