-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JACK doesn't respect data format #5
Comments
Both JACK and CoreAudio only support Float32 natively. RtAudio should allow a user to read / write the other formats but the “Natively supported data formats” reported by the getDeviceInfo() function / structure will only report the native formats. Thus, please verify that what you are reporting is different than what I stated above. —gary On Feb 27, 2014, at 4:16 AM, SeeLook notifications@github.com wrote:
|
I was not able to open a stream with RtAudio JACKAPI and data format set to INT16. In fact, it is not big problem to have int to float conversion myself but maybe I can help to find some issue or to expose it for others. All respects, |
I just tested this on my own linux system (Fedora 17) and I cannot repeat the behaviour you describe. I started JACK at 48000 and ran the "tests/playsaw.cpp" program for all the different formats listed at the top, and there was no problem. If you run the "tests/audioprobe.cpp" program, it only lists the one sample rate and the one native data format (always 32-bit float for JACK) that the JACK daemon is running at, but the automatic conversion from/to the other supported data formats is still fine. |
I can't reproduce this issue with tests/playsaw.cpp. It is possible that all my troubles occurred again due to two RtAudio instances in one app - I wrote about it. |
I'm closing this issue. |
I noticed that in some cases JACK doesn't start stream with data format different than FLOAT32.
The "cases" occurred when JACK was run in 48000Hz samplerate.
When it was run in 44100Hz, supportedFormats() method returned FLOAT32 and INT16 as well but with 480000 only FLOAT32 was there and stream didn't initialise with INT16.
It happened under Linux.
I didn't test JACK under Mac but there, with coreAudio, supportedFormats() returns only FLOAT32 but RtAudio starts nicely with INT16 and converts it silently.
The text was updated successfully, but these errors were encountered: