File: wpc_client.c

package info (click to toggle)
gimp-gap 2.6.0%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 20,716 kB
  • sloc: ansic: 119,817; sh: 3,890; makefile: 931; lisp: 97; pascal: 55
file content (36 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <gtk/gtk.h>
#include <client.c>

#define USE_AUDIOCLIENT_WAVPLAY
#ifdef USE_AUDIOCLIENT_WAVPLAY

/* AudioPlayerCLient Wrapper Procedures
 * Implementation for wavplay client
 */


#define APCL_ErrFunc ErrFunc

int apcl_volume(double volume, int flags,APCL_ErrFunc erf)
{
  static double old_volume = -1.0;
  
  /* todo: the wavplay server has NO COMMAND to adjust the audio volume
   *       (for now the user can call gnome-volume-control utility
   *        but this should be also pssible from here too.
   */
  if(old_volume != volume)
  {
    printf("** Adjusting the Audio Volume is not implemented yet! vol=%.2f\n", (float)volume);
    old_volume = volume;
  }
  return(TRUE);
}

pid_t 
apcl_get_serverpid(void)
{
  return(svrPID);
}

#endif