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).

1  
!7
2  
3  
lib 1009653 lib 1009652 lib 1009650 // JACK
4  
lib 1009654 // JavaSound
5  
lib 1009055 lib 1009056 // JNA
6  
7  
import java.util.ServiceLoader;
8  
import org.jaudiolibs.audioservers.AudioServerProvider;
9  
import org.jaudiolibs.audioservers.ext.Device;
10  
11  
/**
12  
 *
13  
 * @author Neil C Smith
14  
 */
15  
16  
    p {
17  
        fixContextClassLoader();
18  
        
19  
        for (AudioServerProvider provider : ServiceLoader.load(AudioServerProvider.class)) {
20  
            System.out.println("Found library : " + provider.getLibraryName());
21  
            System.out.println("==============================================");
22  
            System.out.println("Devices");
23  
            System.out.println("----------------------------------------------");
24  
            for (Device dev : provider.findAll(Device.class)) {
25  
                System.out.println(dev.getName() + " (inputs: " + dev.getMaxInputChannels() + ", outputs: " + dev.getMaxOutputChannels() + ")");
26  
                
27  
            }
28  
        }
29  
    }

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: 460 / 618
Version history: 5 change(s)
Referenced in: [show references]