Package uk.co.caprica.vlcj.binding.internal

Examples of uk.co.caprica.vlcj.binding.internal.libvlc_audio_output_device_t


     * @return collection of audio output devices
     */
    private List<AudioDevice> getAudioOutputDevices(String outputName) {
        Logger.debug("getAudioOutputDevices(outputName={})", outputName);
        List<AudioDevice> result = new ArrayList<AudioDevice>();
        libvlc_audio_output_device_t audioDevices = libvlc.libvlc_audio_output_device_list_get(instance, outputName);
        if (audioDevices != null) {
            // Must prevent automatic synchronisation on the native structure, otherwise a
            // fatal JVM crash will occur when the native release call is made - not quite
            // sure why this is needed here
            audioDevices.setAutoSynch(false);
            libvlc_audio_output_device_t audioDevice = audioDevices;
            while(audioDevice != null) {
                // The native strings must be copied here, but not freed (they are freed natively
                // in the subsequent release call)
                String device = NativeString.copyNativeString(libvlc, audioDevice.psz_device);
                String description = NativeString.copyNativeString(libvlc, audioDevice.psz_description);
View Full Code Here

TOP

Related Classes of uk.co.caprica.vlcj.binding.internal.libvlc_audio_output_device_t

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.