Deleted Added
full compact
cdcontrol.c (13865) cdcontrol.c (13867)
1/*
2 * Compact Disc Control Utility by Serge V. Vakulenko, <vak@cronyx.ru>.
3 * Based on the non-X based CD player by Jean-Marc Zucconi and
4 * Andrey A. Chernov.
5 */
6#include <stdio.h>
7#include <stdlib.h>
8#include <string.h>

--- 397 unchanged lines hidden (view full) ---

406 if (verbose) {
407 printf ("track start duration block length type\n");
408 printf ("-------------------------------------------------\n");
409 }
410 for (i = 0; i < n; i++) {
411 printf ("%5d ", toc_buffer[i].track);
412 prtrack (toc_buffer + i, 0);
413 }
1/*
2 * Compact Disc Control Utility by Serge V. Vakulenko, <vak@cronyx.ru>.
3 * Based on the non-X based CD player by Jean-Marc Zucconi and
4 * Andrey A. Chernov.
5 */
6#include <stdio.h>
7#include <stdlib.h>
8#include <string.h>

--- 397 unchanged lines hidden (view full) ---

406 if (verbose) {
407 printf ("track start duration block length type\n");
408 printf ("-------------------------------------------------\n");
409 }
410 for (i = 0; i < n; i++) {
411 printf ("%5d ", toc_buffer[i].track);
412 prtrack (toc_buffer + i, 0);
413 }
414 printf (" end ");
414 printf ("%5d ", toc_buffer[n].track);
415 prtrack (toc_buffer + n, 1);
416 return (0);
417}
418
419void lba2msf (int lba, u_char *m, u_char *s, u_char *f)
420{
421 lba += 150; /* block start offset */
422 lba &= 0xffffff; /* negative lbas use only 24 bits */

--- 208 unchanged lines hidden ---
415 prtrack (toc_buffer + n, 1);
416 return (0);
417}
418
419void lba2msf (int lba, u_char *m, u_char *s, u_char *f)
420{
421 lba += 150; /* block start offset */
422 lba &= 0xffffff; /* negative lbas use only 24 bits */

--- 208 unchanged lines hidden ---