mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 21:31:18 +00:00
Replace bzero with memset
...as memset is more likely to work with all compilers.
This commit is contained in:
parent
e7e07e17c4
commit
178615c189
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ new_fluid_coremidi_driver(fluid_settings_t* settings, handle_midi_event_func_t h
|
|||
}
|
||||
|
||||
fluid_settings_dupstr(settings, "midi.coremidi.id", &id); /* ++ alloc id string */
|
||||
bzero (clientid, sizeof(clientid));
|
||||
memset (clientid, 0, sizeof(clientid));
|
||||
if (id != NULL) {
|
||||
if (FLUID_STRCMP (id, "pid") == 0) {
|
||||
snprintf (clientid, sizeof(clientid), " (%d)", getpid());
|
||||
|
|
|
@ -143,7 +143,7 @@ new_fluid_portaudio_driver (fluid_settings_t *settings, fluid_synth_t *synth)
|
|||
fluid_settings_getnum (settings, "synth.sample-rate", &sample_rate);
|
||||
fluid_settings_dupstr(settings, "audio.portaudio.device", &device); /* ++ alloc device name */
|
||||
|
||||
bzero (&outputParams, sizeof (outputParams));
|
||||
memset (&outputParams, 0, sizeof (outputParams));
|
||||
outputParams.channelCount = 2;
|
||||
outputParams.suggestedLatency = (PaTime)period_size / sample_rate;
|
||||
|
||||
|
|
Loading…
Reference in a new issue