~ubuntu-branches/ubuntu/trusty/mpd/trusty

« back to all changes in this revision

Viewing changes to src/mixer_all.h

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2011-02-02 12:26:30 UTC
  • mfrom: (1.5.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110202122630-bdyx8w4k94doz4fs
Tags: 0.16.1-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - debian/control:
    + Don't build-depend on libmikmod2-dev (Debian bug #510675).
    + Move avahi-daemon from Suggests field to Recommends field.
  - debian/mpd.init.d:
    + Read mpd user from mpd.conf.
  - debian/control, debian/rules:
    + Add libmp3lame-dev to the build dependencies and enable lame.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2003-2009 The Music Player Daemon Project
 
2
 * Copyright (C) 2003-2010 The Music Player Daemon Project
3
3
 * http://www.musicpd.org
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
37
37
/**
38
38
 * Sets the volume on all available mixers.
39
39
 *
40
 
 * @param volume the volume (range 0..100 or -100..100 if #relative)
41
 
 * @param relative if true, then the #volume is added to the current value
 
40
 * @param volume the volume (range 0..100)
42
41
 * @return true on success, false on failure
43
42
 */
44
43
bool
45
 
mixer_all_set_volume(int volume, bool relative);
 
44
mixer_all_set_volume(unsigned volume);
 
45
 
 
46
/**
 
47
 * Similar to mixer_all_get_volume(), but gets the volume only for
 
48
 * software mixers.  See #software_mixer_plugin.  This function fails
 
49
 * if no software mixer is configured.
 
50
 */
 
51
int
 
52
mixer_all_get_software_volume(void);
 
53
 
 
54
/**
 
55
 * Similar to mixer_all_set_volume(), but sets the volume only for
 
56
 * software mixers.  See #software_mixer_plugin.  This function cannot
 
57
 * fail, because the underlying software mixers cannot fail either.
 
58
 */
 
59
void
 
60
mixer_all_set_software_volume(unsigned volume);
46
61
 
47
62
#endif