get isrc from nrg files AND new API char * cdio_get_track_isrc(CdIo_t *,track_t);

This commit is contained in:
edsdead
2008-03-20 01:40:28 +00:00
parent c0f66c3330
commit e4ecb61b05
10 changed files with 112 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: track.c,v 1.5 2008/03/16 00:12:43 rocky Exp $
$Id: track.c,v 1.6 2008/03/20 01:40:29 edsdead Exp $
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
@@ -246,6 +246,25 @@ cdio_get_track_lsn(const CdIo_t *p_cdio, track_t i_track)
}
}
/*!
Return the International Standard Recording Code (ISRC) for track number
i_track in p_cdio. Track numbers start at 1.
Note: string is malloc'd so caller has to free() the returned
string when done with it.
*/
char *
cdio_get_track_isrc (const CdIo_t *p_cdio, track_t i_track)
{
if (p_cdio == NULL) return NULL;
if (p_cdio->op.get_track_isrc) {
return p_cdio->op.get_track_isrc (p_cdio->env, i_track);
} else {
return NULL;
}
}
/*!
Return the starting LBA for the pregap for track number
i_track in cdio. Track numbers start at 1.