src/java.desktop/unix/native/libjsound/PLATFORM_API_SolarisOS_Utils.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
    36 static int globalADCacheTime = -1;
    36 static int globalADCacheTime = -1;
    37 /* how many seconds do we cache devices */
    37 /* how many seconds do we cache devices */
    38 #define AD_CACHE_TIME 30
    38 #define AD_CACHE_TIME 30
    39 
    39 
    40 // return seconds
    40 // return seconds
    41 long getTimeInSeconds() {
    41 long getTimeInSeconds(void) {
    42     struct timeval tv;
    42     struct timeval tv;
    43     gettimeofday(&tv, NULL);
    43     gettimeofday(&tv, NULL);
    44     return tv.tv_sec;
    44     return tv.tv_sec;
    45 }
    45 }
    46 
    46 
    47 
    47 
    48 int getAudioDeviceCount() {
    48 int getAudioDeviceCount(void) {
    49     int count = MAX_AUDIO_DEVICES;
    49     int count = MAX_AUDIO_DEVICES;
    50 
    50 
    51     getAudioDevices(globalADPaths, &count);
    51     getAudioDevices(globalADPaths, &count);
    52     return count;
    52     return count;
    53 }
    53 }