mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 13:21:03 +00:00
Replace g_atomic_*() with fluid_atomic_*()
This commit is contained in:
parent
3cea11de7f
commit
7e238c5438
1 changed files with 2 additions and 2 deletions
|
@ -500,7 +500,7 @@ fluid_sequencer_remove_events (fluid_sequencer_t* seq, short source,
|
||||||
unsigned int
|
unsigned int
|
||||||
fluid_sequencer_get_tick (fluid_sequencer_t* seq)
|
fluid_sequencer_get_tick (fluid_sequencer_t* seq)
|
||||||
{
|
{
|
||||||
unsigned int absMs = seq->useSystemTimer ? (int) fluid_curtime() : g_atomic_int_get(&seq->currentMs);
|
unsigned int absMs = seq->useSystemTimer ? (int) fluid_curtime() : fluid_atomic_int_get(&seq->currentMs);
|
||||||
double nowFloat;
|
double nowFloat;
|
||||||
unsigned int now;
|
unsigned int now;
|
||||||
nowFloat = ((double)(absMs - seq->startMs))*seq->scale/1000.0f;
|
nowFloat = ((double)(absMs - seq->startMs))*seq->scale/1000.0f;
|
||||||
|
@ -846,7 +846,7 @@ fluid_sequencer_process(fluid_sequencer_t* seq, unsigned int msec)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* send queued events */
|
/* send queued events */
|
||||||
g_atomic_int_set(&seq->currentMs, msec);
|
fluid_atomic_int_set(&seq->currentMs, msec);
|
||||||
_fluid_seq_queue_send_queued_events(seq);
|
_fluid_seq_queue_send_queued_events(seq);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue