equal
deleted
inserted
replaced
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 } |