[Stk] RtAudio - Problem with RTAUDIO_SINT24
Gary Scavone
gary at ccrma.Stanford.EDU
Tue Dec 14 06:09:22 PST 2010
Hi Thomas,
The RTAUDIO_SINT24 is defined as the upper 3 bytes of a 32-bit signed integer. So, you should be able to play it as 32-bit data. I made it that way for convenience, since there is no "native" 24-bit variable format in computers.
--gary
On 2010-12-14, at 7:57 AM, TJF wrote:
> Hi,
>
> is nobody using RTAUDIO_SINT24 ... ? :-)
>
> Regards
> Thomas
>
>
>
> Am 12.12.2010 11:35, schrieb TJF:
>> Hi,
>>
>> I cannot play 24 Bit Files using RTAUDIO_SINT24. These 24 Bit files
>> could be i.e. usual 24/96kHz Chesky Wav-Files (start after wav-header)
>> or i.e. files which are generated with Sox:
>>
>> sox input_16_44100.wav -b 24 output_88200_24.raw rate 88200
>>
>> The simplest way to reproduce this is to use "playraw.cpp" coming with
>> rtaudio 4.07 and the usage of the soxed raw-file (see above). All the
>> other formats with exception of RTAUDIO_SINT24 are working!
>>
>> This would work, but it is not a solution, because all 24 Bit files must
>> be changed (because it is a change to a 32 bit file):
>>
>> 1.) The "soxed" raw-file above
>> 2.) sox -e unsigned -b 24 -r 88200 output_88200_24.raw -b 32 output.raw
>> 3.) Using RTAUDIO_SINT32
>>
>> Any idea how to get this work?
>>
>> Thanks a lot.
>> Regards
>> Thomas
>>
>> _______________________________________________
>> Stk mailing list
>> Stk at ccrma.stanford.edu
>> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>>
>
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
More information about the Stk
mailing list