mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
jack: add midi format
Add midi format Handle ore requests Clean semaphore and socket names
This commit is contained in:
parent
1fc7c6de59
commit
12e2fae8ab
10 changed files with 71 additions and 11 deletions
|
|
@ -52,7 +52,7 @@ spa_pod_builder_push_format(struct spa_pod_builder *builder,
|
|||
spa_pod_builder_object(b, f, 0, format_type, \
|
||||
SPA_POD_TYPE_ID,media_type, \
|
||||
SPA_POD_TYPE_ID,media_subtype, \
|
||||
__VA_ARGS__)
|
||||
## __VA_ARGS__)
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@ struct spa_type_media_subtype_audio {
|
|||
uint32_t g729;
|
||||
uint32_t amr;
|
||||
uint32_t gsm;
|
||||
uint32_t midi;
|
||||
};
|
||||
|
||||
static inline void
|
||||
|
|
@ -133,6 +134,7 @@ spa_type_media_subtype_audio_map(struct spa_type_map *map,
|
|||
type->g729 = spa_type_map_get_id(map, SPA_TYPE_MEDIA_SUBTYPE__g729);
|
||||
type->amr = spa_type_map_get_id(map, SPA_TYPE_MEDIA_SUBTYPE__amr);
|
||||
type->gsm = spa_type_map_get_id(map, SPA_TYPE_MEDIA_SUBTYPE__gsm);
|
||||
type->midi = spa_type_map_get_id(map, SPA_TYPE_MEDIA_SUBTYPE__midi);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ struct spa_format;
|
|||
#define SPA_TYPE_MEDIA_SUBTYPE__g729 SPA_TYPE_MEDIA_SUBTYPE_BASE "g729"
|
||||
#define SPA_TYPE_MEDIA_SUBTYPE__amr SPA_TYPE_MEDIA_SUBTYPE_BASE "amr"
|
||||
#define SPA_TYPE_MEDIA_SUBTYPE__gsm SPA_TYPE_MEDIA_SUBTYPE_BASE "gsm"
|
||||
#define SPA_TYPE_MEDIA_SUBTYPE__midi SPA_TYPE_MEDIA_SUBTYPE_BASE "midi"
|
||||
|
||||
struct spa_format_body {
|
||||
struct spa_pod_object_body obj_body;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#define CHECK_PORT(this,d,p) ((d) == SPA_DIRECTION_INPUT && (p) == 0)
|
||||
|
||||
static const char default_device[] = "hw:0";
|
||||
static const uint32_t default_min_latency = 1024;
|
||||
static const uint32_t default_min_latency = 128;
|
||||
|
||||
static void reset_props(struct props *props)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue