]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mp3_afh.c
fd.c: Kill para_fread() and para_fseek()
[paraslash.git] / mp3_afh.c
index a3e3c5c330466e672aa80ab58a7a462443bdef7f..ffabfe4eb1479b0d57849ddbae65a583d5013760 100644 (file)
--- a/mp3_afh.c
+++ b/mp3_afh.c
@@ -187,15 +187,13 @@ static int compare_headers(struct mp3header *h1,struct mp3header *h2)
        return 0;
 }
 
-/**
+/*
  * get next MP3 frame header.
  *
- * \param stream to read the header from
- * \param header structure that gets filled in by get_header()
- *
- * \return On success, the header frame length is returned.  A return value of
- * zero means that we did not retrieve a valid frame header, and a negative
- * return value indicates an error.
+ * On success, the header frame length is returned and the given header
+ * structure that is filled in.  A return value of zero means that we did not
+ * retrieve a valid frame header, and a negative return value indicates an
+ * error.
  */
 static int get_header(unsigned char *map, off_t numbytes, off_t *fpos,
        struct mp3header *header)
@@ -230,13 +228,11 @@ out:
        return ret;
 }
 
-/**
+/*
  * find the next mp3 header
  *
- * \return On success, the length of the next frame header. If the end of the
- * file was reached, the function returns zero. On errors, a negative value is
- * returned.
- *
+ * Return the length of the next frame header or zero if the end of the file is
+ * reached.
  */
 static int mp3_seek_next_header(unsigned char *map, off_t numbytes, off_t *fpos)
 {
@@ -404,7 +400,7 @@ err_out:
 /*
  * Read mp3 information from audio file
  */
-static int mp3_get_file_info(FILE *file, char *map, off_t numbytes,
+static int mp3_get_file_info(char *map, off_t numbytes,
                struct audio_format_info *afi)
 {
        int ret;