WIP:some updates on cmake stuff in order to build aRts with optional backend (alsa, jack...) #4

Draft
Ghost wants to merge 1 commits from feat/cmake_update into master
Ghost commented 3 years ago

Add support for Open Sound System, this has to be tested either on Linux and FreeBSD, the PATH have to be checked/adjusted for FreeBSD.

Rem: have a look at Threads support, thing aren't clear to me at the moment.

Add support for Open Sound System, this has to be tested either on Linux and FreeBSD, the PATH have to be checked/adjusted for FreeBSD. Rem: have a look at Threads support, thing aren't clear to me at the moment.
Ghost added the PR/wip label 3 years ago
Ghost added 1 commit 3 years ago
Owner

Hi Greg,
I tried testing this in Debian.

  1. Testing PR as is, causing any building to be skipped. Ninja builds gives a 2 steps process instead of the usual 187.

  2. Playing around with debian config, I got to a point where libesd was required, but there is no libesd in bullseye at all.

  3. Disabling WITH_ESOUND I go further but again ninja-builds report a 2 steps process only and build failed.

I didn't have more time to test this today. Will try to do more later if I find the time, but I thought it would be worth giving you some feedback.

Hi Greg, I tried testing this in Debian. 1. Testing PR as is, causing any building to be skipped. Ninja builds gives a 2 steps process instead of the usual 187. 2. Playing around with debian config, I got to a point where libesd was required, but there is no libesd in bullseye at all. 3. Disabling WITH_ESOUND I go further but again ninja-builds report a 2 steps process only and build failed. I didn't have more time to test this today. Will try to do more later if I find the time, but I thought it would be worth giving you some feedback.
Ghost commented 3 years ago
Poster

Hi Michele, you can't build this PR as-is since I've left It in a none building state, see all the directories but one (libltdl) are commented.

I often adopt this strategy when I convert/cleanup a module which is actually a marker for me, It tells me that I haven't had a look at the other directories yet. When I remove WIP then you may give It a go.

On the contrary, what is usefull to me is that you build aRts from master with Jack support.
At the moment the Deb packaging does not pick up on Jack, as a result Jack can't be selected as a backend in the Trinity Control Center.

In order to build aRts with Jack you have to adjust the rules file with either adding to It -DWITH_JACK="ON" or switching from -DBUILD_ALL="ON" to -DWITH_ALL_OPTIONS="ON" -DWITH_ESOUND="OFF".

If I'm not mistaken, once aRts is built with Jack support, "Jack Audio Connection Kit" should be available as a backend in TDE.
Menu->Trinity Control Center->Sound & Multimedia->Sound system->Hardware->Select the audio device:->Jack Audio Connection Kit
Btw, the label "Select the audio device:" is not meaningful to me since we aren't really selecting a piece of hardware here.

Then, there is a test button: Sound system->Hardware->Test Sound
I wish to know if you ear a sound with Jack as a backend, because on my system It does not play, I get the test sound with Alsa only (don't have PulseAudio installed)

I also hope that you guys move from Jack1 (legacy) to Jack2 in Debian too...if possible.

Hi Michele, you can't build this PR as-is since I've left It in a none building state, see all the directories but one (libltdl) are commented. I often adopt this strategy when I convert/cleanup a module which is actually a marker for me, It tells me that I haven't had a look at the other directories yet. When I remove WIP then you may give It a go. On the contrary, what is usefull to me is that you build aRts from master with Jack support. At the moment the Deb packaging does not pick up on Jack, as a result Jack can't be selected as a backend in the Trinity Control Center. In order to build aRts with Jack you have to adjust the **rules** file with either adding to It **-DWITH_JACK="ON"** or switching from **-DBUILD_ALL="ON"** to **-DWITH_ALL_OPTIONS="ON" -DWITH_ESOUND="OFF"**. If I'm not mistaken, once aRts is built with Jack support, "Jack Audio Connection Kit" should be available as a backend in TDE. Menu->Trinity Control Center->Sound & Multimedia->Sound system->Hardware->Select the audio device:->Jack Audio Connection Kit Btw, the label "Select the audio device:" is not meaningful to me since we aren't really selecting a piece of hardware here. Then, there is a test button: Sound system->Hardware->Test Sound I wish to know if you ear a sound with Jack as a backend, because on my system It does not play, I get the test sound with Alsa only (don't have PulseAudio installed) I also hope that you guys move from Jack1 (legacy) to Jack2 in Debian too...if possible.
Ghost force-pushed feat/cmake_update from e18ba3cfa5 to b6ed338283 3 years ago
Owner

Hi Greg,
thanks for the feedback. Yesterday was a super busy day so I only gave it a build test and did not see the WIP status of the PR. Will build arts from master with jack enabled and will let you know how it goes.

Hi Greg, thanks for the feedback. Yesterday was a super busy day so I only gave it a build test and did not see the WIP status of the PR. Will build arts from master with jack enabled and will let you know how it goes.
Ghost force-pushed feat/cmake_update from b6ed338283 to d03ce4b8c0 3 years ago
Ghost force-pushed feat/cmake_update from d03ce4b8c0 to 380537d996 3 years ago
Ghost force-pushed feat/cmake_update from 380537d996 to efc83cad5c 3 years ago
Owner

Hi Greg,
alsa works fine as backend. Will build arts with jack support and feedback.

Hi Greg, alsa works fine as backend. Will build arts with jack support and feedback.
Owner

Hi Greg,
apologies for the long wait. I finally built arts with jack 1 support and tested. I don't hear any sound, either with the test button or with NoAtun, which works fine with alsa instead.
I have not tested with jack2.

Hi Greg, apologies for the long wait. I finally built arts with jack 1 support and tested. I don't hear any sound, either with the test button or with NoAtun, which works fine with alsa instead. I have not tested with jack2.
Owner

I tried also jack2 and same, no sound.
Playing around with qjackctl it seems my jack server does not start at all, which would explain the missing sound.

I tried also jack2 and same, no sound. Playing around with qjackctl it seems my jack server does not start at all, which would explain the missing sound.
Owner

I can start jack1 server, but still no sound.

I can start jack1 server, but still no sound.
Ghost force-pushed feat/cmake_update from efc83cad5c to 36c8fdea14 3 years ago
Ghost force-pushed feat/cmake_update from 36c8fdea14 to 425f41c77d 3 years ago
This pull request has changes conflicting with the target branch.
CMakeLists.txt
ConfigureChecks.cmake
config.h.cmake
flow/CMakeLists.txt
flow/gsl/CMakeLists.txt
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/arts#4
Loading…
There is no content yet.