NSM/jackpatch: Rebuild patch network upon NSM save.

This commit is contained in:
Jonathan Moore Liles 2013-05-02 22:18:44 -07:00
parent 3084956664
commit 1c6add6c2b
1 changed files with 7 additions and 1 deletions

View File

@ -490,6 +490,8 @@ snapshot ( const char *file )
return;
}
clear_all_patches();
for ( port = ports; *port; port++ )
{
jack_port_t *p;
@ -506,7 +508,11 @@ snapshot ( const char *file )
for ( connection = connections; *connection; connection++ )
{
fprintf( fp, "%-40s |> %s\n", *port, *connection );
char *s;
asprintf( &s, "%-40s |> %s\n", *port, *connection );
fprintf( fp, "%s", s );
process_patch( s );
free(s);
printf( "++ %s |> %s\n", *port, *connection );
}