New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
|
|
@ -1,4 +1,4 @@
|
|||
PulseInput="Captura de entrada audio (PulseAudio)"
|
||||
PulseOutput="Captura de saída de audio (PulseAudio)"
|
||||
PulseInput="Captura de entrada son (PulseAudio)"
|
||||
PulseOutput="Captura de saída de son (PulseAudio)"
|
||||
Device="Dispositivo"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
PulseInput="შემავალი ხმოვანი სიგნალის ჩაწერა (PulseAudio)"
|
||||
PulseInput="შემავალი ხმის ჩაწერა (PulseAudio)"
|
||||
PulseOutput="გამოტანილი ხმის ჩაწერა (PulseAudio)"
|
||||
Device="მოწყობილობა"
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include "pulse-wrapper.h"
|
||||
|
||||
#define NSEC_PER_SEC 1000000000LL
|
||||
#define NSEC_PER_SEC 1000000000LL
|
||||
#define NSEC_PER_MSEC 1000000L
|
||||
|
||||
#define PULSE_DATA(voidptr) struct pulse_data *data = voidptr;
|
||||
|
|
@ -53,15 +53,19 @@ static void pulse_stop_recording(struct pulse_data *data);
|
|||
/**
|
||||
* get obs from pulse audio format
|
||||
*/
|
||||
static enum audio_format pulse_to_obs_audio_format(
|
||||
pa_sample_format_t format)
|
||||
static enum audio_format pulse_to_obs_audio_format(pa_sample_format_t format)
|
||||
{
|
||||
switch (format) {
|
||||
case PA_SAMPLE_U8: return AUDIO_FORMAT_U8BIT;
|
||||
case PA_SAMPLE_S16LE: return AUDIO_FORMAT_16BIT;
|
||||
case PA_SAMPLE_S32LE: return AUDIO_FORMAT_32BIT;
|
||||
case PA_SAMPLE_FLOAT32LE: return AUDIO_FORMAT_FLOAT;
|
||||
default: return AUDIO_FORMAT_UNKNOWN;
|
||||
case PA_SAMPLE_U8:
|
||||
return AUDIO_FORMAT_U8BIT;
|
||||
case PA_SAMPLE_S16LE:
|
||||
return AUDIO_FORMAT_16BIT;
|
||||
case PA_SAMPLE_S32LE:
|
||||
return AUDIO_FORMAT_32BIT;
|
||||
case PA_SAMPLE_FLOAT32LE:
|
||||
return AUDIO_FORMAT_FLOAT;
|
||||
default:
|
||||
return AUDIO_FORMAT_UNKNOWN;
|
||||
}
|
||||
|
||||
return AUDIO_FORMAT_UNKNOWN;
|
||||
|
|
@ -77,17 +81,24 @@ static enum audio_format pulse_to_obs_audio_format(
|
|||
* @note This *might* not work for some rather unusual setups, but should work
|
||||
* fine for the majority of cases.
|
||||
*/
|
||||
static enum speaker_layout pulse_channels_to_obs_speakers(
|
||||
uint_fast32_t channels)
|
||||
static enum speaker_layout
|
||||
pulse_channels_to_obs_speakers(uint_fast32_t channels)
|
||||
{
|
||||
switch(channels) {
|
||||
case 1: return SPEAKERS_MONO;
|
||||
case 2: return SPEAKERS_STEREO;
|
||||
case 3: return SPEAKERS_2POINT1;
|
||||
case 4: return SPEAKERS_4POINT0;
|
||||
case 5: return SPEAKERS_4POINT1;
|
||||
case 6: return SPEAKERS_5POINT1;
|
||||
case 8: return SPEAKERS_7POINT1;
|
||||
switch (channels) {
|
||||
case 1:
|
||||
return SPEAKERS_MONO;
|
||||
case 2:
|
||||
return SPEAKERS_STEREO;
|
||||
case 3:
|
||||
return SPEAKERS_2POINT1;
|
||||
case 4:
|
||||
return SPEAKERS_4POINT0;
|
||||
case 5:
|
||||
return SPEAKERS_4POINT1;
|
||||
case 6:
|
||||
return SPEAKERS_5POINT1;
|
||||
case 8:
|
||||
return SPEAKERS_7POINT1;
|
||||
}
|
||||
|
||||
return SPEAKERS_UNKNOWN;
|
||||
|
|
@ -185,19 +196,18 @@ static void pulse_stream_read(pa_stream *p, size_t nbytes, void *userdata)
|
|||
|
||||
if (!frames) {
|
||||
blog(LOG_ERROR, "Got audio hole of %u bytes",
|
||||
(unsigned int) bytes);
|
||||
(unsigned int)bytes);
|
||||
pa_stream_drop(data->stream);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
struct obs_source_audio out;
|
||||
out.speakers = data->speakers;
|
||||
out.speakers = data->speakers;
|
||||
out.samples_per_sec = data->samples_per_sec;
|
||||
out.format = pulse_to_obs_audio_format(data->format);
|
||||
out.data[0] = (uint8_t *) frames;
|
||||
out.frames = bytes / data->bytes_per_frame;
|
||||
out.timestamp = get_sample_time(out.frames,
|
||||
out.samples_per_sec);
|
||||
out.format = pulse_to_obs_audio_format(data->format);
|
||||
out.data[0] = (uint8_t *)frames;
|
||||
out.frames = bytes / data->bytes_per_frame;
|
||||
out.timestamp = get_sample_time(out.frames, out.samples_per_sec);
|
||||
|
||||
if (!data->first_ts)
|
||||
data->first_ts = out.timestamp + STARTUP_TIMEOUT_NS;
|
||||
|
|
@ -217,29 +227,32 @@ exit:
|
|||
* Server info callback
|
||||
*/
|
||||
static void pulse_server_info(pa_context *c, const pa_server_info *i,
|
||||
void *userdata)
|
||||
void *userdata)
|
||||
{
|
||||
UNUSED_PARAMETER(c);
|
||||
PULSE_DATA(userdata);
|
||||
|
||||
blog(LOG_INFO, "Server name: '%s %s'",
|
||||
i->server_name, i->server_version);
|
||||
blog(LOG_INFO, "Server name: '%s %s'", i->server_name,
|
||||
i->server_version);
|
||||
|
||||
if (data->device && strcmp("default", data->device) == 0) {
|
||||
if (data->input) {
|
||||
bfree(data->device);
|
||||
data->device = bstrdup(i->default_source_name);
|
||||
|
||||
blog(LOG_DEBUG, "Default input device: '%s'", data->device);
|
||||
blog(LOG_DEBUG, "Default input device: '%s'",
|
||||
data->device);
|
||||
} else {
|
||||
char *monitor = bzalloc(strlen(i->default_sink_name) + 9);
|
||||
char *monitor =
|
||||
bzalloc(strlen(i->default_sink_name) + 9);
|
||||
strcat(monitor, i->default_sink_name);
|
||||
strcat(monitor, ".monitor");
|
||||
|
||||
bfree(data->device);
|
||||
data->device = bstrdup(monitor);
|
||||
|
||||
blog(LOG_DEBUG, "Default output device: '%s'", data->device);
|
||||
blog(LOG_DEBUG, "Default output device: '%s'",
|
||||
data->device);
|
||||
bfree(monitor);
|
||||
}
|
||||
}
|
||||
|
|
@ -254,7 +267,7 @@ static void pulse_server_info(pa_context *c, const pa_server_info *i,
|
|||
* configured to something obs can't deal with.
|
||||
*/
|
||||
static void pulse_source_info(pa_context *c, const pa_source_info *i, int eol,
|
||||
void *userdata)
|
||||
void *userdata)
|
||||
{
|
||||
UNUSED_PARAMETER(c);
|
||||
PULSE_DATA(userdata);
|
||||
|
|
@ -267,35 +280,36 @@ static void pulse_source_info(pa_context *c, const pa_source_info *i, int eol,
|
|||
if (eol > 0)
|
||||
goto skip;
|
||||
|
||||
blog(LOG_INFO, "Audio format: %s, %"PRIu32" Hz"
|
||||
", %"PRIu8" channels",
|
||||
pa_sample_format_to_string(i->sample_spec.format),
|
||||
i->sample_spec.rate,
|
||||
i->sample_spec.channels);
|
||||
blog(LOG_INFO,
|
||||
"Audio format: %s, %" PRIu32 " Hz"
|
||||
", %" PRIu8 " channels",
|
||||
pa_sample_format_to_string(i->sample_spec.format),
|
||||
i->sample_spec.rate, i->sample_spec.channels);
|
||||
|
||||
pa_sample_format_t format = i->sample_spec.format;
|
||||
if (pulse_to_obs_audio_format(format) == AUDIO_FORMAT_UNKNOWN) {
|
||||
format = PA_SAMPLE_FLOAT32LE;
|
||||
|
||||
blog(LOG_INFO, "Sample format %s not supported by OBS,"
|
||||
"using %s instead for recording",
|
||||
pa_sample_format_to_string(i->sample_spec.format),
|
||||
pa_sample_format_to_string(format));
|
||||
blog(LOG_INFO,
|
||||
"Sample format %s not supported by OBS,"
|
||||
"using %s instead for recording",
|
||||
pa_sample_format_to_string(i->sample_spec.format),
|
||||
pa_sample_format_to_string(format));
|
||||
}
|
||||
|
||||
uint8_t channels = i->sample_spec.channels;
|
||||
if (pulse_channels_to_obs_speakers(channels) == SPEAKERS_UNKNOWN) {
|
||||
channels = 2;
|
||||
|
||||
blog(LOG_INFO, "%c channels not supported by OBS,"
|
||||
"using %c instead for recording",
|
||||
i->sample_spec.channels,
|
||||
channels);
|
||||
blog(LOG_INFO,
|
||||
"%c channels not supported by OBS,"
|
||||
"using %c instead for recording",
|
||||
i->sample_spec.channels, channels);
|
||||
}
|
||||
|
||||
data->format = format;
|
||||
data->format = format;
|
||||
data->samples_per_sec = i->sample_spec.rate;
|
||||
data->channels = channels;
|
||||
data->channels = channels;
|
||||
|
||||
skip:
|
||||
pulse_signal(0);
|
||||
|
|
@ -313,24 +327,25 @@ skip:
|
|||
*/
|
||||
static int_fast32_t pulse_start_recording(struct pulse_data *data)
|
||||
{
|
||||
if (pulse_get_server_info(pulse_server_info, (void *) data) < 0) {
|
||||
if (pulse_get_server_info(pulse_server_info, (void *)data) < 0) {
|
||||
blog(LOG_ERROR, "Unable to get server info !");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (pulse_get_source_info(pulse_source_info, data->device,
|
||||
(void *) data) < 0) {
|
||||
(void *)data) < 0) {
|
||||
blog(LOG_ERROR, "Unable to get source info !");
|
||||
return -1;
|
||||
}
|
||||
if (data->format == PA_SAMPLE_INVALID) {
|
||||
blog(LOG_ERROR, "An error occurred while getting the source info!");
|
||||
blog(LOG_ERROR,
|
||||
"An error occurred while getting the source info!");
|
||||
return -1;
|
||||
}
|
||||
|
||||
pa_sample_spec spec;
|
||||
spec.format = data->format;
|
||||
spec.rate = data->samples_per_sec;
|
||||
spec.format = data->format;
|
||||
spec.rate = data->samples_per_sec;
|
||||
spec.channels = data->channels;
|
||||
|
||||
if (!pa_sample_spec_valid(&spec)) {
|
||||
|
|
@ -344,7 +359,7 @@ static int_fast32_t pulse_start_recording(struct pulse_data *data)
|
|||
pa_channel_map channel_map = pulse_channel_map(data->speakers);
|
||||
|
||||
data->stream = pulse_stream_new(obs_source_get_name(data->source),
|
||||
&spec, &channel_map);
|
||||
&spec, &channel_map);
|
||||
if (!data->stream) {
|
||||
blog(LOG_ERROR, "Unable to create stream");
|
||||
return -1;
|
||||
|
|
@ -352,21 +367,21 @@ static int_fast32_t pulse_start_recording(struct pulse_data *data)
|
|||
|
||||
pulse_lock();
|
||||
pa_stream_set_read_callback(data->stream, pulse_stream_read,
|
||||
(void *) data);
|
||||
(void *)data);
|
||||
pulse_unlock();
|
||||
|
||||
pa_buffer_attr attr;
|
||||
attr.fragsize = pa_usec_to_bytes(25000, &spec);
|
||||
attr.maxlength = (uint32_t) -1;
|
||||
attr.minreq = (uint32_t) -1;
|
||||
attr.prebuf = (uint32_t) -1;
|
||||
attr.tlength = (uint32_t) -1;
|
||||
attr.fragsize = pa_usec_to_bytes(25000, &spec);
|
||||
attr.maxlength = (uint32_t)-1;
|
||||
attr.minreq = (uint32_t)-1;
|
||||
attr.prebuf = (uint32_t)-1;
|
||||
attr.tlength = (uint32_t)-1;
|
||||
|
||||
pa_stream_flags_t flags = PA_STREAM_ADJUST_LATENCY;
|
||||
|
||||
pulse_lock();
|
||||
int_fast32_t ret = pa_stream_connect_record(data->stream, data->device,
|
||||
&attr, flags);
|
||||
&attr, flags);
|
||||
pulse_unlock();
|
||||
if (ret < 0) {
|
||||
pulse_stop_recording(data);
|
||||
|
|
@ -392,8 +407,9 @@ static void pulse_stop_recording(struct pulse_data *data)
|
|||
}
|
||||
|
||||
blog(LOG_INFO, "Stopped recording from '%s'", data->device);
|
||||
blog(LOG_INFO, "Got %"PRIuFAST32" packets with %"PRIuFAST64" frames",
|
||||
data->packets, data->frames);
|
||||
blog(LOG_INFO,
|
||||
"Got %" PRIuFAST32 " packets with %" PRIuFAST64 " frames",
|
||||
data->packets, data->frames);
|
||||
|
||||
data->first_ts = 0;
|
||||
data->packets = 0;
|
||||
|
|
@ -404,14 +420,14 @@ static void pulse_stop_recording(struct pulse_data *data)
|
|||
* input info callback
|
||||
*/
|
||||
static void pulse_input_info(pa_context *c, const pa_source_info *i, int eol,
|
||||
void *userdata)
|
||||
void *userdata)
|
||||
{
|
||||
UNUSED_PARAMETER(c);
|
||||
if (eol != 0 || i->monitor_of_sink != PA_INVALID_INDEX)
|
||||
goto skip;
|
||||
|
||||
obs_property_list_add_string((obs_property_t*) userdata,
|
||||
i->description, i->name);
|
||||
obs_property_list_add_string((obs_property_t *)userdata, i->description,
|
||||
i->name);
|
||||
|
||||
skip:
|
||||
pulse_signal(0);
|
||||
|
|
@ -421,14 +437,14 @@ skip:
|
|||
* output info callback
|
||||
*/
|
||||
static void pulse_output_info(pa_context *c, const pa_sink_info *i, int eol,
|
||||
void *userdata)
|
||||
void *userdata)
|
||||
{
|
||||
UNUSED_PARAMETER(c);
|
||||
if (eol != 0 || i->monitor_source == PA_INVALID_INDEX)
|
||||
goto skip;
|
||||
|
||||
obs_property_list_add_string((obs_property_t*) userdata,
|
||||
i->description, i->monitor_source_name);
|
||||
obs_property_list_add_string((obs_property_t *)userdata, i->description,
|
||||
i->monitor_source_name);
|
||||
|
||||
skip:
|
||||
pulse_signal(0);
|
||||
|
|
@ -440,22 +456,22 @@ skip:
|
|||
static obs_properties_t *pulse_properties(bool input)
|
||||
{
|
||||
obs_properties_t *props = obs_properties_create();
|
||||
obs_property_t *devices = obs_properties_add_list(props, "device_id",
|
||||
obs_module_text("Device"), OBS_COMBO_TYPE_LIST,
|
||||
OBS_COMBO_FORMAT_STRING);
|
||||
obs_property_t *devices = obs_properties_add_list(
|
||||
props, "device_id", obs_module_text("Device"),
|
||||
OBS_COMBO_TYPE_LIST, OBS_COMBO_FORMAT_STRING);
|
||||
|
||||
pulse_init();
|
||||
if (input)
|
||||
pulse_get_source_info_list(pulse_input_info, (void *) devices);
|
||||
pulse_get_source_info_list(pulse_input_info, (void *)devices);
|
||||
else
|
||||
pulse_get_sink_info_list(pulse_output_info, (void *) devices);
|
||||
pulse_get_sink_info_list(pulse_output_info, (void *)devices);
|
||||
pulse_unref();
|
||||
|
||||
size_t count = obs_property_list_item_count(devices);
|
||||
|
||||
if (count > 0)
|
||||
obs_property_list_insert_string(devices, 0,
|
||||
obs_module_text("Default"), "default");
|
||||
obs_property_list_insert_string(
|
||||
devices, 0, obs_module_text("Default"), "default");
|
||||
|
||||
return props;
|
||||
}
|
||||
|
|
@ -544,12 +560,13 @@ static void pulse_update(void *vptr, obs_data_t *settings)
|
|||
/**
|
||||
* Create the plugin object
|
||||
*/
|
||||
static void *pulse_create(obs_data_t *settings, obs_source_t *source, bool input)
|
||||
static void *pulse_create(obs_data_t *settings, obs_source_t *source,
|
||||
bool input)
|
||||
{
|
||||
struct pulse_data *data = bzalloc(sizeof(struct pulse_data));
|
||||
|
||||
data->input = input;
|
||||
data->source = source;
|
||||
data->input = input;
|
||||
data->source = source;
|
||||
|
||||
pulse_init();
|
||||
pulse_update(data, settings);
|
||||
|
|
@ -568,28 +585,26 @@ static void *pulse_output_create(obs_data_t *settings, obs_source_t *source)
|
|||
}
|
||||
|
||||
struct obs_source_info pulse_input_capture = {
|
||||
.id = "pulse_input_capture",
|
||||
.type = OBS_SOURCE_TYPE_INPUT,
|
||||
.output_flags = OBS_SOURCE_AUDIO |
|
||||
OBS_SOURCE_DO_NOT_DUPLICATE,
|
||||
.get_name = pulse_input_getname,
|
||||
.create = pulse_input_create,
|
||||
.destroy = pulse_destroy,
|
||||
.update = pulse_update,
|
||||
.get_defaults = pulse_defaults,
|
||||
.get_properties = pulse_input_properties
|
||||
.id = "pulse_input_capture",
|
||||
.type = OBS_SOURCE_TYPE_INPUT,
|
||||
.output_flags = OBS_SOURCE_AUDIO | OBS_SOURCE_DO_NOT_DUPLICATE,
|
||||
.get_name = pulse_input_getname,
|
||||
.create = pulse_input_create,
|
||||
.destroy = pulse_destroy,
|
||||
.update = pulse_update,
|
||||
.get_defaults = pulse_defaults,
|
||||
.get_properties = pulse_input_properties,
|
||||
};
|
||||
|
||||
struct obs_source_info pulse_output_capture = {
|
||||
.id = "pulse_output_capture",
|
||||
.type = OBS_SOURCE_TYPE_INPUT,
|
||||
.output_flags = OBS_SOURCE_AUDIO |
|
||||
OBS_SOURCE_DO_NOT_DUPLICATE |
|
||||
OBS_SOURCE_DO_NOT_SELF_MONITOR,
|
||||
.get_name = pulse_output_getname,
|
||||
.create = pulse_output_create,
|
||||
.destroy = pulse_destroy,
|
||||
.update = pulse_update,
|
||||
.get_defaults = pulse_defaults,
|
||||
.get_properties = pulse_output_properties
|
||||
.id = "pulse_output_capture",
|
||||
.type = OBS_SOURCE_TYPE_INPUT,
|
||||
.output_flags = OBS_SOURCE_AUDIO | OBS_SOURCE_DO_NOT_DUPLICATE |
|
||||
OBS_SOURCE_DO_NOT_SELF_MONITOR,
|
||||
.get_name = pulse_output_getname,
|
||||
.create = pulse_output_create,
|
||||
.destroy = pulse_destroy,
|
||||
.update = pulse_update,
|
||||
.get_defaults = pulse_defaults,
|
||||
.get_properties = pulse_output_properties,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ static void pulse_init_context()
|
|||
pa_threaded_mainloop_get_api(pulse_mainloop), "OBS", p);
|
||||
|
||||
pa_context_set_state_callback(pulse_context,
|
||||
pulse_context_state_changed, NULL);
|
||||
pulse_context_state_changed, NULL);
|
||||
|
||||
pa_context_connect(pulse_context, NULL, PA_CONTEXT_NOAUTOSPAWN, NULL);
|
||||
pa_proplist_free(p);
|
||||
|
|
@ -163,15 +163,15 @@ void pulse_accept()
|
|||
pa_threaded_mainloop_accept(pulse_mainloop);
|
||||
}
|
||||
|
||||
int_fast32_t pulse_get_source_info_list(pa_source_info_cb_t cb, void* userdata)
|
||||
int_fast32_t pulse_get_source_info_list(pa_source_info_cb_t cb, void *userdata)
|
||||
{
|
||||
if (pulse_context_ready() < 0)
|
||||
return -1;
|
||||
|
||||
pulse_lock();
|
||||
|
||||
pa_operation *op = pa_context_get_source_info_list(
|
||||
pulse_context, cb, userdata);
|
||||
pa_operation *op =
|
||||
pa_context_get_source_info_list(pulse_context, cb, userdata);
|
||||
if (!op) {
|
||||
pulse_unlock();
|
||||
return -1;
|
||||
|
|
@ -192,8 +192,8 @@ int_fast32_t pulse_get_sink_info_list(pa_sink_info_cb_t cb, void *userdata)
|
|||
|
||||
pulse_lock();
|
||||
|
||||
pa_operation *op = pa_context_get_sink_info_list(
|
||||
pulse_context, cb, userdata);
|
||||
pa_operation *op =
|
||||
pa_context_get_sink_info_list(pulse_context, cb, userdata);
|
||||
if (!op) {
|
||||
pulse_unlock();
|
||||
return -1;
|
||||
|
|
@ -208,7 +208,7 @@ int_fast32_t pulse_get_sink_info_list(pa_sink_info_cb_t cb, void *userdata)
|
|||
}
|
||||
|
||||
int_fast32_t pulse_get_source_info(pa_source_info_cb_t cb, const char *name,
|
||||
void *userdata)
|
||||
void *userdata)
|
||||
{
|
||||
if (pulse_context_ready() < 0)
|
||||
return -1;
|
||||
|
|
@ -230,15 +230,15 @@ int_fast32_t pulse_get_source_info(pa_source_info_cb_t cb, const char *name,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int_fast32_t pulse_get_server_info(pa_server_info_cb_t cb, void* userdata)
|
||||
int_fast32_t pulse_get_server_info(pa_server_info_cb_t cb, void *userdata)
|
||||
{
|
||||
if (pulse_context_ready() < 0)
|
||||
return -1;
|
||||
|
||||
pulse_lock();
|
||||
|
||||
pa_operation *op = pa_context_get_server_info(
|
||||
pulse_context, cb, userdata);
|
||||
pa_operation *op =
|
||||
pa_context_get_server_info(pulse_context, cb, userdata);
|
||||
if (!op) {
|
||||
pulse_unlock();
|
||||
return -1;
|
||||
|
|
@ -251,8 +251,8 @@ int_fast32_t pulse_get_server_info(pa_server_info_cb_t cb, void* userdata)
|
|||
return 0;
|
||||
}
|
||||
|
||||
pa_stream* pulse_stream_new(const char* name, const pa_sample_spec* ss,
|
||||
const pa_channel_map* map)
|
||||
pa_stream *pulse_stream_new(const char *name, const pa_sample_spec *ss,
|
||||
const pa_channel_map *map)
|
||||
{
|
||||
if (pulse_context_ready() < 0)
|
||||
return NULL;
|
||||
|
|
@ -260,11 +260,10 @@ pa_stream* pulse_stream_new(const char* name, const pa_sample_spec* ss,
|
|||
pulse_lock();
|
||||
|
||||
pa_proplist *p = pulse_properties();
|
||||
pa_stream *s = pa_stream_new_with_proplist(
|
||||
pulse_context, name, ss, map, p);
|
||||
pa_stream *s =
|
||||
pa_stream_new_with_proplist(pulse_context, name, ss, map, p);
|
||||
pa_proplist_free(p);
|
||||
|
||||
pulse_unlock();
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ int_fast32_t pulse_get_sink_info_list(pa_sink_info_cb_t cb, void *userdata);
|
|||
* @warning call without active locks
|
||||
*/
|
||||
int_fast32_t pulse_get_source_info(pa_source_info_cb_t cb, const char *name,
|
||||
void *userdata);
|
||||
void *userdata);
|
||||
|
||||
/**
|
||||
* Request server information
|
||||
|
|
@ -148,4 +148,4 @@ int_fast32_t pulse_get_server_info(pa_server_info_cb_t cb, void *userdata);
|
|||
* @warning call without active locks
|
||||
*/
|
||||
pa_stream *pulse_stream_new(const char *name, const pa_sample_spec *ss,
|
||||
const pa_channel_map *map);
|
||||
const pa_channel_map *map);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue