player: completely remove sync_update when not needed
This commit is contained in:
parent
2a44eff473
commit
5c359b035d
@ -143,7 +143,9 @@ int main(int argc, char *argv[])
|
|||||||
bool done = false;
|
bool done = false;
|
||||||
while (!done) {
|
while (!done) {
|
||||||
double row = bass_get_row(stream);
|
double row = bass_get_row(stream);
|
||||||
|
#ifndef SYNC_PLAYER
|
||||||
sync_update(rocket, (int)floor(row));
|
sync_update(rocket, (int)floor(row));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* draw */
|
/* draw */
|
||||||
|
|
||||||
|
|||||||
@ -131,10 +131,6 @@ static int load_track_data(struct sync_track *t, const char *path)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sync_update(struct sync_device *d, double row)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
void sync_set_callbacks(struct sync_device *d, struct sync_cb *cb, void *cb_param)
|
void sync_set_callbacks(struct sync_device *d, struct sync_cb *cb, void *cb_param)
|
||||||
|
|||||||
@ -22,9 +22,9 @@ struct sync_cb {
|
|||||||
int (*is_playing)(void *);
|
int (*is_playing)(void *);
|
||||||
};
|
};
|
||||||
void sync_set_callbacks(struct sync_device *, struct sync_cb *, void *);
|
void sync_set_callbacks(struct sync_device *, struct sync_cb *, void *);
|
||||||
|
void sync_update(struct sync_device *, int);
|
||||||
#endif /* !defined(SYNC_PLAYER) */
|
#endif /* !defined(SYNC_PLAYER) */
|
||||||
|
|
||||||
void sync_update(struct sync_device *, int);
|
|
||||||
const struct sync_track *sync_get_track(struct sync_device *, const char *);
|
const struct sync_track *sync_get_track(struct sync_device *, const char *);
|
||||||
float sync_get_val(const struct sync_track *, double);
|
float sync_get_val(const struct sync_track *, double);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user