Lines Matching defs:bc_read

1102 {	static SF_BROADCAST_INFO bc_write, bc_read ;
1132 memset (&bc_read, 0, sizeof (bc_read)) ;
1135 if (sf_command (file, SFC_GET_BROADCAST_INFO, &bc_read, sizeof (bc_read)) == SF_FALSE)
1143 if (bc_read.version != 2)
1144 { printf ("\n\nLine %d : Read bad version number %d.\n\n", __LINE__, bc_read.version) ;
1149 bc_read.version = bc_write.version = 0 ;
1151 if (memcmp (bc_write.description, bc_read.description, sizeof (bc_write.description)) != 0)
1152 { printf ("\n\nLine %d : description mismatch :\n\twrite : '%s'\n\tread : '%s'\n\n", __LINE__, bc_write.description, bc_read.description) ;
1156 if (memcmp (bc_write.originator, bc_read.originator, sizeof (bc_write.originator)) != 0)
1157 { printf ("\n\nLine %d : originator mismatch :\n\twrite : '%s'\n\tread : '%s'\n\n", __LINE__, bc_write.originator, bc_read.originator) ;
1161 if (memcmp (bc_write.originator_reference, bc_read.originator_reference, sizeof (bc_write.originator_reference)) != 0)
1162 { printf ("\n\nLine %d : originator_reference mismatch :\n\twrite : '%s'\n\tread : '%s'\n\n", __LINE__, bc_write.originator_reference, bc_read.originator_reference) ;
1166 if (memcmp (bc_write.origination_date, bc_read.origination_date, sizeof (bc_write.origination_date)) != 0)
1167 { printf ("\n\nLine %d : origination_date mismatch :\n\twrite : '%s'\n\tread : '%s'\n\n", __LINE__, bc_write.origination_date, bc_read.origination_date) ;
1171 if (memcmp (bc_write.origination_time, bc_read.origination_time, sizeof (bc_write.origination_time)) != 0)
1172 { printf ("\n\nLine %d : origination_time mismatch :\n\twrite : '%s'\n\tread : '%s'\n\n", __LINE__, bc_write.origination_time, bc_read.origination_time) ;
1176 if (memcmp (bc_write.umid, bc_read.umid, sizeof (bc_write.umid)) != 0)
1177 { printf ("\n\nLine %d : umid mismatch :\n\twrite : '%s'\n\tread : '%s'\n\n", __LINE__, bc_write.umid, bc_read.umid) ;
1228 { static SF_BROADCAST_INFO bc_write, bc_read ;
1256 memset (&bc_read, 0, sizeof (bc_read)) ;
1259 if (sf_command (file, SFC_GET_BROADCAST_INFO, &bc_read, sizeof (bc_read)) == SF_FALSE)
1266 if (bc_read.coding_history_size == 0)
1271 if (strstr (bc_read.coding_history, "Last line") == NULL)
1276 for (k = 1 ; k < bc_read.coding_history_size ; k++)
1277 { if (bc_read.coding_history [k] == '\n' && bc_read.coding_history [k - 1] != '\r')
1282 if (bc_read.coding_history [k] == '\r' && bc_read.coding_history [k + 1] != '\n')
1287 if (bc_read.coding_history [k] == 0 && k < bc_read.coding_history_size - 1)
1288 { printf ("\n\nLine %d : '\\0' within coding history at index %d of %d.\n\n", __LINE__, k, bc_read.coding_history_size) ;
1298 { static SF_BROADCAST_INFO bc_write, bc_read ;
1332 memset (&bc_read, 0, sizeof (bc_read)) ;
1335 if (sf_command (file, SFC_GET_BROADCAST_INFO, &bc_read, sizeof (bc_read)) == SF_FALSE)
1342 if (bc_read.coding_history_size == 0)
1347 if (bc_read.coding_history_size < strlen (default_history) || memcmp (bc_read.coding_history, default_history, strlen (default_history)) != 0)
1350 " should be '%s'\n\n", __LINE__, bc_read.coding_history_size, bc_read.coding_history, default_history) ;
1366 memset (&bc_read, 0, sizeof (bc_read)) ;
1369 if (sf_command (file, SFC_GET_BROADCAST_INFO, &bc_read, sizeof (bc_read)) == SF_FALSE)
1377 if (strstr (bc_read.coding_history, supplied_history) != bc_read.coding_history)
1385 __LINE__, bc_read.coding_history, supplied_history) ;
1402 static SF_BROADCAST_INFO_VAR (1024) bc_read ;
1441 memset (&bc_read, 0, sizeof (bc_read)) ;
1444 if (sf_command (file, SFC_GET_BROADCAST_INFO, &bc_read, sizeof (bc_read)) == SF_FALSE)
1451 exit_if_true (bc_read.coding_history_size < 512,
1452 "\n\nLine %d : unexpected coding history size %d (should be > 512).\n\n", __LINE__, bc_read.coding_history_size) ;
1454 exit_if_true (strstr (bc_read.coding_history, "libsndfile") == NULL,