Displaying 3 results from an estimated 3 matches for "ridgerun".
2014 Aug 14
1
Encoder example for 24-bit files
On Thu, Aug 14, 2014 at 12:34 PM, lvqcl <lvqcl.mail at gmail.com> wrote:
> Jose Pablo Carballo <jose.carballo at ridgerun.com> wrote:
>
>> - channels = 2;
>> - bps = 16;
>> + channels = ((unsigned)buffer[23] << 8) | buffer[22];
>> + bps = ((unsigned)buffer[35] << 8) | buffer[34];
>> total_samples = (((((((unsigned)buffer[43] << 8) | buffer[42]) << 8)
>&g...
2014 Aug 14
6
Encoder example for 24-bit files
Hi,
In the last days I've been taking as reference the example found in
examples/c/encode/file/main.c. With it I've been able to encode a 2ch,
16 bps, 44100 sample rate input WAV file to a FLAC file.
Now I've been trying to modify this example to encode a 2ch, 24 bps,
96000 sample rate WAV file. I have to say I'm a bit lost on how I
should read the input file in this case, and
2014 Aug 14
0
Encoder example for 24-bit files
Ian's explanation below was helpful:
On Thu, Aug 14, 2014 at 7:53 AM, Ian Nartowicz <ian at nartowicz.co.uk> wrote:
> The sample rate should take care of itself. I suspect your difficulty is how
> the 24 bit samples are represented in the WAV data and how to pack them into
> the Flac buffer?
>
> WAV samples are stored in either 8, 16, or 32 bit words, using the smallest