Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
alsa-utils
0010-alsaloop-Make-alsaloop-working-without-lib...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0010-alsaloop-Make-alsaloop-working-without-libsamplerate.patch of Package alsa-utils
From b7ea343820a4616b5f6e3b200f776ab742893039 Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@suse.de> Date: Fri, 30 Nov 2012 14:35:31 +0100 Subject: [PATCH] alsaloop: Make alsaloop working without libsamplerate When alsaloop is built with libsamplerate, it quits immediately with No libsamplerate suppor message. It's because the check of -A option and it's set as default non-zero value. Signed-off-by: Takashi Iwai <tiwai@suse.de> --- alsaloop/alsaloop.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/alsaloop/alsaloop.c b/alsaloop/alsaloop.c index 8710dd1..6e94564 100644 --- a/alsaloop/alsaloop.c +++ b/alsaloop/alsaloop.c @@ -387,7 +387,9 @@ static int parse_config(int argc, char *argv[], snd_output_t *output, int arg_nblock = 0; int arg_effect = 0; int arg_resample = 0; +#ifdef USE_SAMPLERATE int arg_samplerate = SRC_SINC_FASTEST + 1; +#else int arg_sync = SYNC_TYPE_AUTO; int arg_slave = SLAVE_TYPE_AUTO; int arg_thread = 0; @@ -474,6 +476,7 @@ static int parse_config(int argc, char *argv[], snd_output_t *output, case 'n': arg_resample = 1; break; +#ifdef USE_SAMPLERATE case 'A': if (strcasecmp(optarg, "sincbest") == 0) arg_samplerate = SRC_SINC_BEST_QUALITY; @@ -491,6 +494,7 @@ static int parse_config(int argc, char *argv[], snd_output_t *output, arg_sync = SRC_SINC_FASTEST; arg_samplerate += 1; break; +#endif case 'S': if (strcasecmp(optarg, "samplerate") == 0) arg_sync = SYNC_TYPE_SAMPLERATE; @@ -610,11 +614,6 @@ static int parse_config(int argc, char *argv[], snd_output_t *output, loop->src_enable = arg_samplerate > 0; if (loop->src_enable) loop->src_converter_type = arg_samplerate - 1; -#else - if (arg_samplerate > 0) { - logit(LOG_CRIT, "No libsamplerate support.\n"); - exit(EXIT_FAILURE); - } #endif set_loop_time(loop, arg_loop_time); add_loop(loop); -- 1.8.0.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor