| 1968 | |
| 1969 | |
| 1970 | DWORD WINAPI RemoteVstPlugin::processingThread( LPVOID _param ) |
| 1971 | { |
| 1972 | __processingThreadId = GetCurrentThreadId(); |
| 1973 | |
| 1974 | RemoteVstPlugin * _this = static_cast<RemoteVstPlugin *>( _param ); |
| 1975 | |
| 1976 | RemotePluginClient::message m; |
| 1977 | while( ( m = _this->receiveMessage() ).id != IdQuit ) |
| 1978 | { |
| 1979 | if( m.id == IdStartProcessing |
| 1980 | || m.id == IdMidiEvent |
| 1981 | || m.id == IdVstSetParameter |
| 1982 | || m.id == IdVstSetTempo ) |
| 1983 | { |
| 1984 | _this->processMessage( m ); |
| 1985 | } |
| 1986 | else if( m.id == IdChangeSharedMemoryKey ) |
| 1987 | { |
| 1988 | _this->processMessage( m ); |
| 1989 | _this->setShmIsValid( true ); |
| 1990 | } |
| 1991 | else |
| 1992 | { |
| 1993 | PostMessage( __MessageHwnd, |
| 1994 | WM_USER, |
| 1995 | ProcessPluginMessage, |
| 1996 | (LPARAM) new message( m ) ); |
| 1997 | } |
| 1998 | } |
| 1999 | |
| 2000 | // notify GUI thread about shutdown |
| 2001 | PostMessage( __MessageHwnd, WM_USER, ClosePlugin, 0 ); |
| 2002 | |
| 2003 | return 0; |
| 2004 | } |
| 2005 | |
| 2006 | |
| 2007 |
nothing calls this directly
no test coverage detected