mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: add more functions
This commit is contained in:
		
							parent
							
								
									40cbc27873
								
							
						
					
					
						commit
						88c824208a
					
				
					 4 changed files with 236 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,9 @@
 | 
			
		|||
pipewire_jack_sources = [
 | 
			
		||||
  'pipewire-jack.c',
 | 
			
		||||
  'metadata.c',
 | 
			
		||||
  'ringbuffer.c',
 | 
			
		||||
  'statistics.c',
 | 
			
		||||
  'uuid.c',
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
pipewire_jack_c_args = [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										105
									
								
								src/metadata.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										105
									
								
								src/metadata.c
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,105 @@
 | 
			
		|||
/* PipeWire
 | 
			
		||||
 * Copyright (C) 2018 Wim Taymans <wim.taymans@gmail.com>
 | 
			
		||||
 *
 | 
			
		||||
 * This library is free software; you can redistribute it and/or
 | 
			
		||||
 * modify it under the terms of the GNU Library General Public
 | 
			
		||||
 * License as published by the Free Software Foundation; either
 | 
			
		||||
 * version 2 of the License, or (at your option) any later version.
 | 
			
		||||
 *
 | 
			
		||||
 * This library is distributed in the hope that it will be useful,
 | 
			
		||||
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
			
		||||
 * Library General Public License for more details.
 | 
			
		||||
 *
 | 
			
		||||
 * You should have received a copy of the GNU Library General Public
 | 
			
		||||
 * License along with this library; if not, write to the
 | 
			
		||||
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 | 
			
		||||
 * Boston, MA 02110-1301, USA.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_CONFIG_H
 | 
			
		||||
#include "config.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <sys/mman.h>
 | 
			
		||||
 | 
			
		||||
#include <jack/metadata.h>
 | 
			
		||||
 | 
			
		||||
#include <pipewire/pipewire.h>
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
jack_set_property(jack_client_t*client,
 | 
			
		||||
                  jack_uuid_t subject,
 | 
			
		||||
                  const char* key,
 | 
			
		||||
                  const char* value,
 | 
			
		||||
                  const char* type)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return -1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
jack_get_property(jack_uuid_t subject,
 | 
			
		||||
                  const char* key,
 | 
			
		||||
                  char**      value,
 | 
			
		||||
                  char**      type)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return -1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
jack_free_description (jack_description_t* desc, int free_description_itself)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
jack_get_properties (jack_uuid_t         subject,
 | 
			
		||||
                     jack_description_t* desc)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return -1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
jack_get_all_properties (jack_description_t** descs)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return -1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int jack_remove_property (jack_client_t* client, jack_uuid_t subject, const char* key)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return -1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int jack_remove_properties (jack_client_t* client, jack_uuid_t subject)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return -1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int jack_remove_all_properties (jack_client_t* client)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return -1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int jack_set_property_change_callback (jack_client_t*             client,
 | 
			
		||||
                                       JackPropertyChangeCallback callback,
 | 
			
		||||
                                       void*                      arg)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return -1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char* JACK_METADATA_PRETTY_NAME = "http://jackaudio.org/metadata/pretty-name";
 | 
			
		||||
const char* JACK_METADATA_HARDWARE = "http://jackaudio.org/metadata/hardware";
 | 
			
		||||
const char* JACK_METADATA_CONNECTED = "http://jackaudio.org/metadata/connected";
 | 
			
		||||
const char* JACK_METADATA_PORT_GROUP = "http://jackaudio.org/metadata/port-group";
 | 
			
		||||
const char* JACK_METADATA_ICON_SMALL = "http://jackaudio.org/metadata/icon-small";
 | 
			
		||||
const char* JACK_METADATA_ICON_LARGE = "http://jackaudio.org/metadata/icon-large";
 | 
			
		||||
							
								
								
									
										47
									
								
								src/statistics.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								src/statistics.c
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,47 @@
 | 
			
		|||
/* PipeWire
 | 
			
		||||
 * Copyright (C) 2018 Wim Taymans <wim.taymans@gmail.com>
 | 
			
		||||
 *
 | 
			
		||||
 * This library is free software; you can redistribute it and/or
 | 
			
		||||
 * modify it under the terms of the GNU Library General Public
 | 
			
		||||
 * License as published by the Free Software Foundation; either
 | 
			
		||||
 * version 2 of the License, or (at your option) any later version.
 | 
			
		||||
 *
 | 
			
		||||
 * This library is distributed in the hope that it will be useful,
 | 
			
		||||
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
			
		||||
 * Library General Public License for more details.
 | 
			
		||||
 *
 | 
			
		||||
 * You should have received a copy of the GNU Library General Public
 | 
			
		||||
 * License along with this library; if not, write to the
 | 
			
		||||
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 | 
			
		||||
 * Boston, MA 02110-1301, USA.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_CONFIG_H
 | 
			
		||||
#include "config.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <sys/mman.h>
 | 
			
		||||
 | 
			
		||||
#include <jack/statistics.h>
 | 
			
		||||
 | 
			
		||||
#include <pipewire/pipewire.h>
 | 
			
		||||
 | 
			
		||||
float jack_get_max_delayed_usecs (jack_client_t *client)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return 0.0f;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
float jack_get_xrun_delayed_usecs (jack_client_t *client)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return 0.0f;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void jack_reset_max_delayed_usecs (jack_client_t *client)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										81
									
								
								src/uuid.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										81
									
								
								src/uuid.c
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,81 @@
 | 
			
		|||
/* PipeWire
 | 
			
		||||
 * Copyright (C) 2018 Wim Taymans <wim.taymans@gmail.com>
 | 
			
		||||
 *
 | 
			
		||||
 * This library is free software; you can redistribute it and/or
 | 
			
		||||
 * modify it under the terms of the GNU Library General Public
 | 
			
		||||
 * License as published by the Free Software Foundation; either
 | 
			
		||||
 * version 2 of the License, or (at your option) any later version.
 | 
			
		||||
 *
 | 
			
		||||
 * This library is distributed in the hope that it will be useful,
 | 
			
		||||
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
			
		||||
 * Library General Public License for more details.
 | 
			
		||||
 *
 | 
			
		||||
 * You should have received a copy of the GNU Library General Public
 | 
			
		||||
 * License along with this library; if not, write to the
 | 
			
		||||
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 | 
			
		||||
 * Boston, MA 02110-1301, USA.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_CONFIG_H
 | 
			
		||||
#include "config.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <sys/mman.h>
 | 
			
		||||
 | 
			
		||||
#include <jack/uuid.h>
 | 
			
		||||
 | 
			
		||||
#include <pipewire/pipewire.h>
 | 
			
		||||
 | 
			
		||||
jack_uuid_t jack_client_uuid_generate ()
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
jack_uuid_t jack_port_uuid_generate (uint32_t port_id)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
uint32_t jack_uuid_to_index (jack_uuid_t id)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int  jack_uuid_compare (jack_uuid_t id1, jack_uuid_t id2)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void jack_uuid_copy (jack_uuid_t* dst, jack_uuid_t src)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void jack_uuid_clear (jack_uuid_t*id)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int  jack_uuid_parse (const char *buf, jack_uuid_t*id)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void jack_uuid_unparse (jack_uuid_t id, char buf[JACK_UUID_STRING_SIZE])
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int  jack_uuid_empty (jack_uuid_t id)
 | 
			
		||||
{
 | 
			
		||||
	pw_log_warn("not implemented");
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue