Commit c8f94cd8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

aout: allow frequency up to 352.8 kHz

This is the frequency for SACD Digital eXtreme Definition.

Higher sample rates exist, notably DSD's 2822.4kH but that is not PCM
and the bitrate computation would really risk 31-bits integer overflow.
parent da08af35
......@@ -43,7 +43,7 @@ vlc_module_begin ()
change_private()
add_integer ("amem-rate", 44100,
N_("Sample rate"), N_("Sample rate"), false)
change_integer_range (1, 192000)
change_integer_range (1, 352800)
change_private()
add_integer ("amem-channels", 2,
N_("Channels count"), N_("Channels count"), false)
......
......@@ -52,7 +52,7 @@ int aout_DecNew( audio_output_t *p_aout,
return -1;
}
if( p_format->i_rate > 192000 )
if( p_format->i_rate > 352800 )
{
msg_Err( p_aout, "excessive audio sample frequency (%u)",
p_format->i_rate );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment