Mercurial > audlegacy-plugins
annotate src/tta/aud-support.h @ 679:c8dc00a58f0d trunk
[svn] - remove a bunch of pointless code. we don't do ID3 for raw AAC files at this time.
author | nenolod |
---|---|
date | Tue, 20 Feb 2007 04:13:46 -0800 |
parents | fbd06b4aa776 |
children |
rev | line source |
---|---|
290 | 1 #include <audacious/vfs.h> |
2 | |
3 #define FILE VFSFile | |
4 #define fopen vfs_fopen | |
5 #define fclose vfs_fclose | |
6 #define fwrite vfs_fwrite | |
7 #define fread vfs_fread | |
8 #define frewind vfs_frewind | |
9 #define ftell vfs_ftell | |
10 #define fseek vfs_fseek | |
11 | |
12 size_t file_size (char *filename) | |
13 { | |
14 VFSFile *f; | |
15 size_t size = -1; | |
16 | |
17 if ((f = vfs_fopen (filename, "r"))) | |
18 { | |
19 vfs_fseek (f, 0, SEEK_END); | |
20 size = vfs_ftell (f); | |
21 vfs_fclose (f); | |
22 } | |
23 return size; | |
24 } |