Mercurial > audlegacy-plugins
changeset 2550:6fdb69f0f169
Use Glib types.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 May 2008 21:54:55 +0300 |
parents | f6efe94f2793 |
children | 92300fe06f15 |
files | src/sndfile/plugin.c |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sndfile/plugin.c Thu May 08 21:51:47 2008 +0300 +++ b/src/sndfile/plugin.c Thu May 08 21:54:55 2008 +0300 @@ -45,8 +45,8 @@ static SNDFILE *sndfile = NULL; static SF_INFO sfinfo; -static int song_length; -static int bit_rate = 0; +static gint song_length; +static gint bit_rate = 0; static glong seek_time = -1; static GThread *decode_thread; @@ -127,12 +127,12 @@ } static void -fill_song_tuple (char *filename, Tuple *ti) +fill_song_tuple (gchar *filename, Tuple *ti) { VFSFile *vfsfile = NULL; SNDFILE *tmp_sndfile; SF_INFO tmp_sfinfo; - unsigned int lossy = 0; + guint lossy = 0; gchar *codec = NULL, *format, *subformat = NULL; GString *codec_gs = NULL; @@ -319,7 +319,7 @@ aud_tuple_associate_string(ti, FIELD_QUALITY, NULL, "lossless"); } -static gchar *get_title(char *filename) +static gchar *get_title(gchar *filename) { Tuple *tuple; gchar *title; @@ -337,8 +337,8 @@ return title; } -static int -is_our_file (char *filename) +static gint +is_our_file (gchar *filename) { VFSFile *vfsfile = NULL; SNDFILE *tmp_sndfile; @@ -361,8 +361,8 @@ static gpointer play_loop (gpointer arg) { - static short buffer [BUFFER_SIZE]; - int samples; + static gshort buffer[BUFFER_SIZE]; + gint samples; InputPlayback *playback = arg; for (;;) @@ -432,7 +432,7 @@ play_start (InputPlayback *playback) { VFSFile *vfsfile = NULL; - int pcmbitwidth; + gint pcmbitwidth; gchar *song_title; if (sndfile) /* already opened */ @@ -521,7 +521,7 @@ return ti; } -static int is_our_file_from_vfs(char *filename, VFSFile *fin) +static gint is_our_file_from_vfs(gchar *filename, VFSFile *fin) { SNDFILE *tmp_sndfile; SF_INFO tmp_sfinfo;