hostapi/jack: fix port name compose

This commit is contained in:
Nedko Arnaudov 2023-01-28 16:35:08 +02:00
parent 1f5b16e9f0
commit b2b8605beb
1 changed files with 2 additions and 2 deletions

View File

@ -1288,7 +1288,7 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
if( inputParameters->hostApiSpecificStreamInfo )
{
snprintf( port_string, jack_port_name_size(), "%s in_%lu",
inputParameters->hostApiSpecificStreamInfo,
((PaJackStreamInfo *)inputParameters->hostApiSpecificStreamInfo)->name,
ofs + i );
}
else
@ -1307,7 +1307,7 @@ static PaError OpenStream( struct PaUtilHostApiRepresentation *hostApi,
if( outputParameters->hostApiSpecificStreamInfo )
{
snprintf( port_string, jack_port_name_size(), "%s out_%lu",
outputParameters->hostApiSpecificStreamInfo,
((PaJackStreamInfo *)outputParameters->hostApiSpecificStreamInfo)->name,
ofs + i );
}
else