Re: problems with dmix, a52 and upmix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

what a pitty...the problem is not solved completely...with some files 
there is the same tingling and stuttering as before...but at least 
amarok plays fine now. Help, does anybody know this problem?

Best Regards,
    Michael

Michael KAufmann schrieb:
> Hello again,
>
> I solved one of my problems. sound from xine is fine now, even using 
> upmix. I found this little patch on the xine mailing list (for 
> xine-lib-1.1.7), but I had to apply it manually (this here is a fixed 
> version, which applies fine), but the dmix--->a52 problem is still there.
>
> diff -Naur xine-lib-1.1.7/src/audio_out/audio_alsa_out.c 
> xine-lib-1.1.7-patched/src/audio_out/audio_alsa_out.c
> --- xine-lib-1.1.7/src/audio_out/audio_alsa_out.c       2007-06-04 
> 23:37:38.000000000 +0200
> +++ xine-lib-1.1.7-patched/src/audio_out/audio_alsa_out.c       
> 2007-09-02 14:13:50.000000000 +0200
> @@ -307,7 +307,8 @@
>    /* int                   open_mode=0;  BLOCK */
>    struct timeval start_time;
>    struct timeval end_time;
> -
> +  int                  resample;
> +
>    snd_pcm_hw_params_alloca(&params);
>    snd_pcm_sw_params_alloca(&swparams);
>    err = snd_output_stdio_attach(&jcd_out, stdout, 0);
> @@ -460,8 +461,8 @@
>      goto close;
>    }
>  #if SND_LIB_VERSION >= 0x010009
> -  /* Restrict a configuration space to contain only real hardware rates */
> -  err = snd_pcm_hw_params_set_rate_resample(this->audio_fd, params, 0);
> +  resample = config->lookup_entry(config, 
> "audio.device.resample_alsa")->num_value;
> +  err = snd_pcm_hw_params_set_rate_resample(this->audio_fd, params, 
> resample);
>  #endif
>    /* set the stream rate [Hz] */
>    dir=0;
> @@ -1369,6 +1370,13 @@
>                                   "will increase performance."),
>                                 10, NULL,
>                                 NULL);
> +  pcm_device = config->register_bool (config,
> +                                     "audio.device.resample_alsa",
> +                                     1,
> +                                     _("allow to use alsa internal 
> resampler"),
> +                                     _("Try to enable this if you hear 
> clicks in sound playback"),
> +                                     10, NULL,
> +                                     NULL);
>    pcm_device = config->register_string(config,
>                                        "audio.device.alsa_default_device",
>                                        "default",
>
>
>
> Best Regards,
>      Michael
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux