|
14 | 14 | * |
15 | 15 | * You should have received a copy of the GNU General Public License |
16 | 16 | * along with this program; if not, write to the Free Software |
17 | | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 | + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | * |
19 | 19 | */ |
20 | 20 |
|
|
27 | 27 | #include <glib.h> |
28 | 28 | #include <glib/gi18n-lib.h> |
29 | 29 |
|
| 30 | +#include <pulse/pulseaudio.h> |
| 31 | + |
30 | 32 | #include "gvc-channel-map.h" |
31 | 33 | #include "gvc-channel-map-private.h" |
32 | 34 |
|
@@ -107,7 +109,7 @@ gvc_channel_map_set_balance (GvcChannelMap *map, |
107 | 109 | { |
108 | 110 | pa_cvolume cv; |
109 | 111 |
|
110 | | - g_return_if_fail (GVC_IS_CHANNEL_MAP (map)); |
| 112 | + g_return_val_if_fail (GVC_IS_CHANNEL_MAP (map), NULL); |
111 | 113 |
|
112 | 114 | if (!gvc_channel_map_can_balance (map)) |
113 | 115 | return; |
@@ -147,7 +149,7 @@ gvc_channel_map_set_fade (GvcChannelMap *map, |
147 | 149 | { |
148 | 150 | pa_cvolume cv; |
149 | 151 |
|
150 | | - g_return_if_fail (GVC_IS_CHANNEL_MAP (map)); |
| 152 | + g_return_val_if_fail (GVC_IS_CHANNEL_MAP (map), NULL); |
151 | 153 |
|
152 | 154 | if (!gvc_channel_map_can_fade (map)) |
153 | 155 | return; |
@@ -189,7 +191,7 @@ gvc_channel_map_set_lfe (GvcChannelMap *map, |
189 | 191 | { |
190 | 192 | pa_cvolume cv; |
191 | 193 |
|
192 | | - g_return_if_fail (GVC_IS_CHANNEL_MAP (map)); |
| 194 | + g_return_val_if_fail (GVC_IS_CHANNEL_MAP (map), NULL); |
193 | 195 |
|
194 | 196 | if (!gvc_channel_map_has_lfe (map)) |
195 | 197 | return; |
@@ -225,7 +227,8 @@ gvc_channel_map_get_mapping (const GvcChannelMap *map) |
225 | 227 |
|
226 | 228 | /** |
227 | 229 | * gvc_channel_map_has_position: |
228 | | - * @position: (type int) |
| 230 | + * @map: |
| 231 | + * @position: |
229 | 232 | * |
230 | 233 | * Returns: |
231 | 234 | */ |
|
0 commit comments