MCPcopy Create free account
hub / github.com/LMMS/lmms / main

Function main

plugins/zynaddsubfx/RemoteZynAddSubFx.cpp:260–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259
260int main( int _argc, char * * _argv )
261{
262#ifdef SYNC_WITH_SHM_FIFO
263 if( _argc < 3 )
264#else
265 if( _argc < 2 )
266#endif
267 {
268 fprintf( stderr, "not enough arguments\n" );
269 return -1;
270 }
271
272#ifdef LMMS_BUILD_WIN32
273#ifndef __WINPTHREADS_VERSION
274 // (non-portable) initialization of statically linked pthread library
275 pthread_win32_process_attach_np();
276 pthread_win32_thread_attach_np();
277#endif
278#endif
279
280
281#ifdef SYNC_WITH_SHM_FIFO
282 RemoteZynAddSubFx * remoteZASF =
283 new RemoteZynAddSubFx( atoi( _argv[1] ), atoi( _argv[2] ) );
284#else
285 RemoteZynAddSubFx * remoteZASF = new RemoteZynAddSubFx( _argv[1] );
286#endif
287
288 remoteZASF->guiLoop();
289
290 delete remoteZASF;
291
292
293#ifdef LMMS_BUILD_WIN32
294#ifndef __WINPTHREADS_VERSION
295 pthread_win32_thread_detach_np();
296 pthread_win32_process_detach_np();
297#endif
298#endif
299
300 return 0;
301}
302
303
304#ifdef NTK_GUI

Callers

nothing calls this directly

Calls 1

guiLoopMethod · 0.80

Tested by

no test coverage detected