Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

29
LINES

< > BotCompany Repo | #1009651 // Test JNAJack (alternative sound output for Linux using JACK)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 6845K of libraries. Click here for Pure Java version (131L/1K/5K).

!7

lib 1009653 lib 1009652 lib 1009650 // JACK
lib 1009654 // JavaSound
lib 1009055 lib 1009056 // JNA

import java.util.ServiceLoader;
import org.jaudiolibs.audioservers.AudioServerProvider;
import org.jaudiolibs.audioservers.ext.Device;

/**
 *
 * @author Neil C Smith
 */

    p {
        fixContextClassLoader();
        
        for (AudioServerProvider provider : ServiceLoader.load(AudioServerProvider.class)) {
            System.out.println("Found library : " + provider.getLibraryName());
            System.out.println("==============================================");
            System.out.println("Devices");
            System.out.println("----------------------------------------------");
            for (Device dev : provider.findAll(Device.class)) {
                System.out.println(dev.getName() + " (inputs: " + dev.getMaxInputChannels() + ", outputs: " + dev.getMaxOutputChannels() + ")");
                
            }
        }
    }

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, icbjsuppbenm, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009651
Snippet name: Test JNAJack (alternative sound output for Linux using JACK)
Eternal ID of this version: #1009651/6
Text MD5: 42856ce2954480a67ad55bc2df8116af
Transpilation MD5: 7868d732e5a306f4deab01a7d5258109
Author: stefan
Category: javax / audio
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-12 21:14:53
Source code size: 992 bytes / 29 lines
Pitched / IR pitched: No / No
Views / Downloads: 459 / 616
Version history: 5 change(s)
Referenced in: [show references]