mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Completed renaming drain->stop, flush->drain (PCM). Done renaming drain->drop, flush->drain (rawmidi and seq). Removed wrong module usage count inc/dec from mmap
This commit is contained in:
parent
7088f19233
commit
2ea3fd4bb3
22 changed files with 86 additions and 86 deletions
|
|
@ -181,12 +181,12 @@ int main(int argc,char** argv)
|
|||
ch=0x90; snd_rawmidi_write(handle_out,&ch,1);
|
||||
ch=60; snd_rawmidi_write(handle_out,&ch,1);
|
||||
ch=100; snd_rawmidi_write(handle_out,&ch,1);
|
||||
snd_rawmidi_output_flush(handle_in);
|
||||
snd_rawmidi_output_drain(handle_in);
|
||||
sleep(1);
|
||||
ch=0x90; snd_rawmidi_write(handle_out,&ch,1);
|
||||
ch=60; snd_rawmidi_write(handle_out,&ch,1);
|
||||
ch=0; snd_rawmidi_write(handle_out,&ch,1);
|
||||
snd_rawmidi_output_flush(handle_out);
|
||||
snd_rawmidi_output_drain(handle_out);
|
||||
}
|
||||
if (fd_out!=-1) {
|
||||
unsigned char ch;
|
||||
|
|
@ -218,7 +218,7 @@ int main(int argc,char** argv)
|
|||
|
||||
if (handle_out) {
|
||||
snd_rawmidi_write(handle_out,&ch,1);
|
||||
snd_rawmidi_output_flush(handle_out);
|
||||
snd_rawmidi_output_drain(handle_out);
|
||||
}
|
||||
if (fd_out!=-1) {
|
||||
write(fd_out,&ch,1);
|
||||
|
|
@ -235,11 +235,11 @@ int main(int argc,char** argv)
|
|||
}
|
||||
|
||||
if (handle_in) {
|
||||
snd_rawmidi_output_flush(handle_in);
|
||||
snd_rawmidi_output_drain(handle_in);
|
||||
snd_rawmidi_close(handle_in);
|
||||
}
|
||||
if (handle_out) {
|
||||
snd_rawmidi_output_flush(handle_in);
|
||||
snd_rawmidi_output_drain(handle_in);
|
||||
snd_rawmidi_close(handle_in);
|
||||
}
|
||||
if (fd_in!=-1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue