Loading apps/decoder.c +24 −0 Original line number Diff line number Diff line Loading @@ -322,15 +322,39 @@ int main( /* sanity check */ if ( arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL && arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR && arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB && arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED && arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ) { #ifdef SOCKET_INTERFACE_FOR_POSE_AND_AUDIO fprintf( stderr, "\nError: Head-rotation cannot be used in this output configuration.\n\n" ); #else fprintf( stderr, "\nError: Head-rotation file file cannot be used in this output configuration.\n\n" ); #endif goto cleanup; } #ifdef SOCKET_INTERFACE_FOR_POSE_AND_AUDIO if ( arg.enableHeadrotTrajSocket ) { if ( ( error = SocketComm_start( &hSocket, arg.socketPort ) ) != IVAS_ERR_OK ) { fprintf( stderr, "\nError: Can't start socket communication \n\n" ); goto cleanup; } } else { if ( ( error = RotationFileReader_open( arg.headrotTrajFileName, &headRotReader ) ) != IVAS_ERR_OK ) { fprintf( stderr, "\nError: Can't open head-rotation file %s \n\n", arg.headrotTrajFileName ); goto cleanup; } } #else if ( ( error = RotationFileReader_open( arg.headrotTrajFileName, &headRotReader ) ) != IVAS_ERR_OK ) { fprintf( stderr, "\nError: Can't open head-rotation file %s \n\n", arg.headrotTrajFileName ); goto cleanup; } #endif } /*------------------------------------------------------------------------------------------* Loading Loading
apps/decoder.c +24 −0 Original line number Diff line number Diff line Loading @@ -322,15 +322,39 @@ int main( /* sanity check */ if ( arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL && arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL_ROOM_IR && arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB && arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED && arg.outputConfig != IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ) { #ifdef SOCKET_INTERFACE_FOR_POSE_AND_AUDIO fprintf( stderr, "\nError: Head-rotation cannot be used in this output configuration.\n\n" ); #else fprintf( stderr, "\nError: Head-rotation file file cannot be used in this output configuration.\n\n" ); #endif goto cleanup; } #ifdef SOCKET_INTERFACE_FOR_POSE_AND_AUDIO if ( arg.enableHeadrotTrajSocket ) { if ( ( error = SocketComm_start( &hSocket, arg.socketPort ) ) != IVAS_ERR_OK ) { fprintf( stderr, "\nError: Can't start socket communication \n\n" ); goto cleanup; } } else { if ( ( error = RotationFileReader_open( arg.headrotTrajFileName, &headRotReader ) ) != IVAS_ERR_OK ) { fprintf( stderr, "\nError: Can't open head-rotation file %s \n\n", arg.headrotTrajFileName ); goto cleanup; } } #else if ( ( error = RotationFileReader_open( arg.headrotTrajFileName, &headRotReader ) ) != IVAS_ERR_OK ) { fprintf( stderr, "\nError: Can't open head-rotation file %s \n\n", arg.headrotTrajFileName ); goto cleanup; } #endif } /*------------------------------------------------------------------------------------------* Loading