player: completely remove sync_update when not needed

This commit is contained in:
Erik Faye-Lund 2010-05-01 20:09:33 +02:00
parent 2a44eff473
commit 5c359b035d
3 changed files with 3 additions and 5 deletions

View File

@ -143,7 +143,9 @@ int main(int argc, char *argv[])
bool done = false;
while (!done) {
double row = bass_get_row(stream);
#ifndef SYNC_PLAYER
sync_update(rocket, (int)floor(row));
#endif
/* draw */

View File

@ -131,10 +131,6 @@ static int load_track_data(struct sync_track *t, const char *path)
return 0;
}
void sync_update(struct sync_device *d, double row)
{
}
#else
void sync_set_callbacks(struct sync_device *d, struct sync_cb *cb, void *cb_param)

View File

@ -22,9 +22,9 @@ struct sync_cb {
int (*is_playing)(void *);
};
void sync_set_callbacks(struct sync_device *, struct sync_cb *, void *);
void sync_update(struct sync_device *, int);
#endif /* !defined(SYNC_PLAYER) */
void sync_update(struct sync_device *, int);
const struct sync_track *sync_get_track(struct sync_device *, const char *);
float sync_get_val(const struct sync_track *, double);