alsa-lib/test
Antonio Ospite 8c0b17bca3 test/seq-decoder: enable timestamping for external subscribers
Events sent by external clients subscribed to the input port are not
timestamped.

This inconsistent behavior may surprise newbies who look at seq-decoder as
a reference example.

See the example below using "vkeybd --addr 128:0" to connect to seq-decoder,
the events sent by vkeybd are on a different queue with no timestamps:

  ...
  EVENT>>> Type = 66, flags = 0x0, time = 0 ticks
           Source = 0.1, dest = 128.0, queue = 253
           Event = Port Subscribed; 129:0 -> 128:0
  EVENT>>> Type = 66, flags = 0x1, time = 4.829712627
           Source = 0.1, dest = 128.0, queue = 0
           Event = Port Subscribed; 129:0 -> 128:0
  EVENT>>> Type = 10, flags = 0x0, time = 0 ticks
           Source = 129.0, dest = 128.0, queue = 253
           Event = Controller; ch=0, param=0, value=0
  EVENT>>> Type = 11, flags = 0x0, time = 0 ticks
           Source = 129.0, dest = 128.0, queue = 253
           Event = Program Change; ch=0, program=0
  ...

After the change events are on the main queue and are timestamped:

  ...
  EVENT>>> Type = 66, flags = 0x1, time = 4.280907223
           Source = 0.1, dest = 128.0, queue = 0
           Event = Port Subscribed; 129:0 -> 128:0
  EVENT>>> Type = 66, flags = 0x1, time = 4.280912063
           Source = 0.1, dest = 128.0, queue = 0
           Event = Port Subscribed; 129:0 -> 128:0
  EVENT>>> Type = 10, flags = 0x1, time = 4.280990702
           Source = 129.0, dest = 128.0, queue = 0
           Event = Controller; ch=0, param=0, value=0
  EVENT>>> Type = 11, flags = 0x1, time = 4.280994862
           Source = 129.0, dest = 128.0, queue = 0
           Event = Program Change; ch=0, program=0
  ...

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-10-03 09:14:07 +02:00
..
lsb add config tests 2009-08-03 13:35:01 +02:00
ucm ucm: allow bind modifier to specific instances, other fixes 2011-01-31 14:24:19 +01:00
audio_time.c test: audio_time: show report validity and accuracy 2015-07-02 17:02:05 +02:00
chmap.c test/chmap: Add missing usage text for -s option 2013-11-04 14:19:03 +01:00
client_event_filter.c add a test code for snd_seq_client_info_event_filter_*() 2008-02-22 17:49:01 +01:00
code.c Fix compile errors/warnings 2005-11-21 10:48:52 +00:00
control.c added snd_user_file() function 2003-09-03 19:25:08 +00:00
latency.c test/latency.c: Fix string argument to getopt_long, so now it handles -E and -B 2012-08-08 16:29:03 +02:00
Makefile.am test: add linker flag with pthread for pcm-multi-thread stress test 2016-07-07 23:48:52 +02:00
midifile.3 Fix hyphens in man pages 2004-10-08 16:15:32 +00:00
midifile.c Fix compile errors/warnings 2005-11-21 10:48:52 +00:00
midifile.h Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
midiloop.c Fix invalid long long format specifier 2012-04-24 15:38:45 +02:00
namehint.c change iface argument for namehint function to const char * 2006-10-27 13:31:32 +02:00
oldapi.c Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-15 10:24:55 +02:00
omixer.c ALISP update 2003-12-23 16:42:55 +00:00
pcm-multi-thread.c test: Add pcm-multi-thread program 2016-07-07 16:30:54 +02:00
pcm.c test/pcm: Fix generated values with float PCM format 2015-06-01 13:42:56 +02:00
pcm_min.c test/pcm_min: Fix error messages 2015-06-01 13:43:36 +02:00
playmidi1.c fixed the type prefix of printd for the time (unsigned long). 2003-07-14 10:23:16 +00:00
queue_timer.c Fix compile errors/warnings 2005-11-21 10:48:52 +00:00
rawmidi.c Fixed comment 2002-07-11 08:00:45 +00:00
seq-decoder.c test/seq-decoder: enable timestamping for external subscribers 2017-10-03 09:14:07 +02:00
seq-sender.c Fix compile errors/warnings 2005-11-21 10:48:52 +00:00
seq.c Fix compile errors/warnings 2005-11-21 10:48:52 +00:00
timer.c added full async interface to timer API 2005-05-11 12:18:51 +00:00
user-ctl-element-set.c test: apply optimization for v4.14 kernel about changes for TLV data handling on user-defined element set 2017-08-24 09:17:32 +02:00