jdk/src/java.desktop/unix/native/libjsound/PLATFORM_API_LinuxOS_ALSA_CommonUtils.c
changeset 33653 c1ee09fe3274
parent 25859 3317bb8137f4
equal deleted inserted replaced
32995:a62c89adce3d 33653:c1ee09fe3274
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    41 }
    41 }
    42 
    42 
    43 static int alsa_inited = 0;
    43 static int alsa_inited = 0;
    44 static int alsa_enumerate_pcm_subdevices = FALSE; // default: no
    44 static int alsa_enumerate_pcm_subdevices = FALSE; // default: no
    45 static int alsa_enumerate_midi_subdevices = FALSE; // default: no
    45 static int alsa_enumerate_midi_subdevices = FALSE; // default: no
       
    46 
       
    47 /*
       
    48  * Declare library specific JNI_Onload entry if static build
       
    49  */
       
    50 DEF_STATIC_JNI_OnLoad
    46 
    51 
    47 void initAlsaSupport() {
    52 void initAlsaSupport() {
    48     char* enumerate;
    53     char* enumerate;
    49     if (!alsa_inited) {
    54     if (!alsa_inited) {
    50         alsa_inited = TRUE;
    55         alsa_inited = TRUE;