mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:05:41 +01:00
aseqsend: Move snd_seq_set_client_midi_version() call out of main()
Move the low-level API function call to init_seq() instead of calling directly from main(). Just a code refactoring. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
dec1ef064a
commit
580ea3c85e
1 changed files with 3 additions and 1 deletions
|
@ -212,6 +212,9 @@ static void init_seq(void)
|
|||
/* set our client's name */
|
||||
err = snd_seq_set_client_name(seq, "aseqsend");
|
||||
check_snd("set client name", err);
|
||||
|
||||
err = snd_seq_set_client_midi_version(seq, ump_version);
|
||||
check_snd("set client midi version", err);
|
||||
}
|
||||
|
||||
static void create_port(void)
|
||||
|
@ -448,7 +451,6 @@ int main(int argc, char *argv[])
|
|||
fatal("UMP data must be aligned to 4 bytes");
|
||||
|
||||
init_seq();
|
||||
snd_seq_set_client_midi_version(seq, ump_version);
|
||||
create_port();
|
||||
|
||||
if (snd_seq_parse_address(seq, &addr, port_name) < 0) {
|
||||
|
|
Loading…
Reference in a new issue