Displaying 3 results from an estimated 3 matches for "flac__format_sample_rate_is_valid".
2004 Nov 11
3
Legal sample rates
On Wed, 10 Nov 2004 16:08:21 -0800 (PST)
Josh Coalson <xflac@yahoo.com> wrote:
> > Is there someway of figuring out if a sample rate is valid?
>
> that's the right way.
But it doesn't tell me that the sample rate is invalid it tells
me FLAC__SEEKABLE_STREAM_ENCODER_STREAM_ENCODER_ERROR or
FLAC__STREAM_ENCODER_NOT_STREAMABLE.
> the reason it's being rejected is
2004 Nov 11
3
Legal sample rates
...e rate is valid?
> > >
> > > that's the right way.
> >
> > But it doesn't tell me that the sample rate is invalid it tells
> > me FLAC__SEEKABLE_STREAM_ENCODER_STREAM_ENCODER_ERROR or
> > FLAC__STREAM_ENCODER_NOT_STREAMABLE.
>
> oh, I meant FLAC__format_sample_rate_is_valid() is the right way
> to check.
Ok, I tried that, but this:
printf ("\n\n%u -> %d\n%u -> %d\n%u -> %d\n",
112, FLAC__format_sample_rate_is_valid(112),
11025, FLAC__format_sample_rate_is_valid(11025),
44100, FLAC__format_sample_rate_is_valid(44100));
prints out this:...
2004 Nov 11
0
Legal sample rates
...there someway of figuring out if a sample rate is valid?
> >
> > that's the right way.
>
> But it doesn't tell me that the sample rate is invalid it tells
> me FLAC__SEEKABLE_STREAM_ENCODER_STREAM_ENCODER_ERROR or
> FLAC__STREAM_ENCODER_NOT_STREAMABLE.
oh, I meant FLAC__format_sample_rate_is_valid() is the right way
to check.
> > the reason it's being rejected is the encoder is configured to
> > obey the subset:
> >
> > http://flac.sourceforge.net/format.html#subset
> >
> > to encode 11.025 kHz you need to call
> > FLAC__seekable_stream_encode...