| 667 | |
| 668 | |
| 669 | void RemoteVstPlugin::init( const std::string & _plugin_file ) |
| 670 | { |
| 671 | if( load( _plugin_file ) == false ) |
| 672 | { |
| 673 | sendMessage( IdVstFailedLoadingPlugin ); |
| 674 | return; |
| 675 | } |
| 676 | |
| 677 | updateInOutCount(); |
| 678 | updateBufferSize(); |
| 679 | updateSampleRate(); |
| 680 | |
| 681 | /* set program to zero */ |
| 682 | /* i comment this out because it breaks dfx Geometer |
| 683 | * looks like we cant set programs for it |
| 684 | * |
| 685 | pluginDispatch( effSetProgram, 0, 0 ); */ |
| 686 | // request rate and blocksize |
| 687 | |
| 688 | setResumed( true ); |
| 689 | |
| 690 | debugMessage( "creating editor\n" ); |
| 691 | initEditor(); |
| 692 | debugMessage( "editor successfully created\n" ); |
| 693 | |
| 694 | |
| 695 | // now post some information about our plugin |
| 696 | sendMessage( message( IdVstPluginWindowID ).addInt( m_windowID ) ); |
| 697 | |
| 698 | sendMessage( message( IdVstPluginEditorGeometry ). |
| 699 | addInt( m_windowWidth ). |
| 700 | addInt( m_windowHeight ) ); |
| 701 | |
| 702 | sendMessage( message( IdVstPluginName ).addString( pluginName() ) ); |
| 703 | sendMessage( message( IdVstPluginVersion ).addInt( pluginVersion() ) ); |
| 704 | sendMessage( message( IdVstPluginVendorString ). |
| 705 | addString( pluginVendorString() ) ); |
| 706 | sendMessage( message( IdVstPluginProductString ). |
| 707 | addString( pluginProductString() ) ); |
| 708 | sendMessage( message( IdVstParameterCount ). |
| 709 | addInt( m_plugin->numParams ) ); |
| 710 | |
| 711 | sendMessage( IdInitDone ); |
| 712 | |
| 713 | m_initialized = true; |
| 714 | } |
| 715 | |
| 716 | |
| 717 |
nothing calls this directly
no test coverage detected