mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa-seq: fix UMP output
We need to set the UMP flag, which is done with snd_seq_ev_set_ump_data() to make it output the midi data.
This commit is contained in:
		
							parent
							
								
									15e200846a
								
							
						
					
					
						commit
						b4d88143da
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -845,9 +845,8 @@ static int process_write(struct seq_state *state)
 | 
			
		|||
#ifdef HAVE_ALSA_UMP
 | 
			
		||||
				snd_seq_ump_event_t ev;
 | 
			
		||||
 | 
			
		||||
				spa_zero(ev);
 | 
			
		||||
				memcpy(ev.ump, body, SPA_MIN(sizeof(ev.ump), (size_t)body_size));
 | 
			
		||||
 | 
			
		||||
				snd_seq_ump_ev_clear(&ev);
 | 
			
		||||
				snd_seq_ev_set_ump_data(&ev, body, SPA_MIN(sizeof(ev.ump), (size_t)body_size));
 | 
			
		||||
				snd_seq_ev_set_source(&ev, state->event.addr.port);
 | 
			
		||||
				snd_seq_ev_set_dest(&ev, port->addr.client, port->addr.port);
 | 
			
		||||
				snd_seq_ev_schedule_real(&ev, state->event.queue_id, 0, &out_rt);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue