#ifndef audio_xy_INCLUDED #define audio_xy_INCLUDED #include #ifdef WIN32 #ifdef DOEXPORT_SCRIPT #define EXPORT_SCRIPT __declspec(dllexport) #else #define EXPORT_SCRIPT #endif #else #define EXPORT_SCRIPT #endif class audio_xy : public bncs_script_helper { public: audio_xy( bncs_client_callback * parent, const char* path ); virtual ~audio_xy(); void buttonCallback( buttonNotify *b ); int revertiveCallback( revertiveNotify * r ); void databaseCallback( revertiveNotify * r ); bncs_string parentCallback( parentNotify *p ); void timerCallback( int ); private: #define MATRIXSIZE 128 bncs_string m_myParam; bncs_string m_instance; int matrix_id; int source_id; int dest_id; int take_timeout; int matrix_state[MATRIXSIZE + 1]; // Holds source id feeding each destination bool source_selected; bool dest_selected; bool take_enabled; bool take_timer_enabled; // Local methods void checkSrcDest(void); // Checkd for both a source and destination selections. Sets the take button enable/disable as correct }; #endif // audio_xy_INCLUDED