#include "xmalloc.h"
/* Set the hardware parameters of the given ALSA device. Returns the
- * selected fragment settings in *period/*period_size */
+ * selected fragment settings in *period and *period_size */
int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, const struct pa_sample_spec *ss, uint32_t *periods, snd_pcm_uframes_t *period_size) {
int ret = -1;
snd_pcm_uframes_t buffer_size;
struct pa_client_conf *pa_client_conf_new(void) {
struct pa_client_conf *c = pa_xmemdup(&default_conf, sizeof(default_conf));
-
-
c->daemon_binary = pa_xstrdup(POLYPAUDIO_BINARY);
c->extra_arguments = pa_xstrdup("--log-target=syslog --exit-idle-time=5");
-
c->cookie_file = pa_xstrdup(PA_NATIVE_COOKIE_FILE);
return c;
}
const char *pa_resample_method_to_string(enum pa_resample_method m) {
- static const char const* resample_methods[] = {
+ static const char * const resample_methods[] = {
"src-sinc-best-quality",
"src-sinc-medium-quality",
"src-sinc-fastest",
pa_xfree(t);
pa_strlist_free(l);
+
+ return 0;
}
for(;;) {
int r;
- va_list ap;
-
c = pa_xrealloc(c, size);
r = vsnprintf(c, size, format, ap);