libcdio-paranoia
10.2+0.94+2git
|
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <cdio/paranoia/cdda.h>
#include <cdio/paranoia/paranoia.h>
#include <cdio/paranoia/version.h>
#include "cachetest.h"
Macros | |
#define | MIN_SEEK_MS 6 |
#define | reportC(...) |
#define | printC(...) {if(progress){fprintf(progress, __VA_ARGS__);}} |
#define | logC(...) {if(log){fprintf(log, __VA_ARGS__);}} |
Functions | |
int | analyze_cache (cdrom_drive_t *d, FILE *progress, FILE *log, int speed) |
#define logC | ( | ... | ) | {if(log){fprintf(log, __VA_ARGS__);}} |
Referenced by analyze_cache().
#define MIN_SEEK_MS 6 |
Referenced by analyze_cache().
#define printC | ( | ... | ) | {if(progress){fprintf(progress, __VA_ARGS__);}} |
Referenced by analyze_cache().
#define reportC | ( | ... | ) |
Referenced by analyze_cache(), and main().
int analyze_cache | ( | cdrom_drive_t * | d, |
FILE * | progress, | ||
FILE * | log, | ||
int | speed | ||
) |
analyze_cache() - analyze drive cache management.
References cdda_read, cdda_read_timed, cdda_speed_set, cdda_track_audiop(), cdda_track_firstsector(), cdda_track_lastsector(), cdrom_paranoia, cdrom_drive_s::error_retry, LIBCDIO_PARANOIA_VERSION, logC, max, MIN_SEEK_MS, NULL, paranoia_cachemodel_size(), paranoia_free(), paranoia_init(), paranoia_version, printC, reportC, and cdrom_drive_s::tracks.
Referenced by main().