~ubuntu-branches/ubuntu/lucid/gavl/lucid

« back to all changes in this revision

Viewing changes to gavl/volume.c

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2008-11-07 13:47:46 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081107134746-s4s970fo1bcde9zw
Tags: 1.0.1-1
* Adopted package for debian, with the blessing of previous maintainer.
* Based new package on Christian Marillat's package for debian-multimedia.
* Removed support for ccache until I figure out how to make it work
  with cdbs.
* Changed library package name since ABI is not backward compatible, but
  upstream did not bump major soversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************
2
 
 
3
 
  volume.c
4
 
 
5
 
  Copyright (c) 2004 by Burkhard Plaum - plaum@ipf.uni-stuttgart.de
6
 
 
7
 
  http://gmerlin.sourceforge.net
8
 
 
9
 
  This program is distributed in the hope that it will be useful,
10
 
  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
  GNU General Public License for more details.
13
 
 
14
 
  You should have received a copy of the GNU General Public License
15
 
  along with this program; if not, write to the Free Software
16
 
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
17
 
 
18
 
*****************************************************************/
 
2
 * gavl - a general purpose audio/video processing library
 
3
 *
 
4
 * Copyright (c) 2001 - 2008 Members of the Gmerlin project
 
5
 * gmerlin-general@lists.sourceforge.net
 
6
 * http://gmerlin.sourceforge.net
 
7
 *
 
8
 * This program is free software: you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation, either version 2 of the License, or
 
11
 * (at your option) any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 * *****************************************************************/
19
21
 
20
22
#include <stdlib.h>
21
23
#include <math.h>
41
43
      break;
42
44
    case GAVL_SAMPLE_NONE:
43
45
    case GAVL_SAMPLE_FLOAT:
 
46
    case GAVL_SAMPLE_DOUBLE:
44
47
      break;
45
48
    }
46
49
  }
104
107
/* Set format: can be called multiple times with one instance */
105
108
 
106
109
void gavl_volume_control_set_format(gavl_volume_control_t * v,
107
 
                                    gavl_audio_format_t * format)
 
110
                                    const gavl_audio_format_t * format)
108
111
  {
109
112
  gavl_volume_funcs_t * funcs;
110
113
 
137
140
    case GAVL_SAMPLE_FLOAT:
138
141
      v->set_volume_channel = funcs->set_volume_float;
139
142
      break;
 
143
    case GAVL_SAMPLE_DOUBLE:
 
144
      v->set_volume_channel = funcs->set_volume_double;
 
145
      break;
140
146
 
141
147
    case GAVL_SAMPLE_NONE:
142
148
      break;