comparison src/vtx/vtx.c @ 2229:33ffac81f4c7

eliminate warnings.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sat, 15 Dec 2007 00:03:37 +0900
parents b8da6a0b0da2
children 42a5c9d5830b
comparison
equal deleted inserted replaced
2228:0f2ac612f318 2229:33ffac81f4c7
94 94
95 Tuple * 95 Tuple *
96 vtx_get_song_tuple_from_vtx(const gchar *filename, ayemu_vtx_t *in) 96 vtx_get_song_tuple_from_vtx(const gchar *filename, ayemu_vtx_t *in)
97 { 97 {
98 Tuple *out = aud_tuple_new_from_filename(filename); 98 Tuple *out = aud_tuple_new_from_filename(filename);
99 gchar *string;
100 99
101 aud_tuple_associate_string(out, FIELD_ARTIST, NULL, in->hdr.author); 100 aud_tuple_associate_string(out, FIELD_ARTIST, NULL, in->hdr.author);
102 aud_tuple_associate_string(out, FIELD_TITLE, NULL, in->hdr.title); 101 aud_tuple_associate_string(out, FIELD_TITLE, NULL, in->hdr.title);
103 102
104 aud_tuple_associate_int(out, FIELD_LENGTH, NULL, in->hdr.regdata_size / 14 * 1000 / 50); 103 aud_tuple_associate_int(out, FIELD_LENGTH, NULL, in->hdr.regdata_size / 14 * 1000 / 50);
157 left -= donow; 156 left -= donow;
158 stream = ayemu_gen_sound (&ay, (char *)stream, donow * rate); 157 stream = ayemu_gen_sound (&ay, (char *)stream, donow * rate);
159 } 158 }
160 else 159 else
161 { /* get next AY register frame */ 160 { /* get next AY register frame */
162 if (ayemu_vtx_get_next_frame (&vtx, regs) == 0) 161 if (ayemu_vtx_get_next_frame (&vtx, (char *)regs) == 0)
163 { 162 {
164 playback->eof = TRUE; 163 playback->eof = TRUE;
165 donow = need; 164 donow = need;
166 memset (stream, 0, donow * rate); 165 memset (stream, 0, donow * rate);
167 } 166 }