~ubuntu-branches/debian/sid/mplayer/sid

« back to all changes in this revision

Viewing changes to libao2/ao_dxr2.c

  • Committer: Bazaar Package Importer
  • Author(s): A Mennucc1
  • Date: 2009-03-23 10:05:45 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090323100545-x8h79obawnnte7kk
Tags: 1.0~rc2+svn20090303-5
debian/control : move docbook-xml,docbook-xsl,xsltproc from 
Build-Depends-Indep to Build-Depends, since they are needed to run
configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * DXR2 audio output driver
 
3
 *
 
4
 * This file is part of MPlayer.
 
5
 *
 
6
 * MPlayer is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * MPlayer is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License along
 
17
 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
 
18
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
19
 */
 
20
 
1
21
#include <math.h>
2
22
#include <stdio.h>
3
23
#include <stdlib.h>
157
177
 
158
178
static void dxr2_send_lpcm_packet(unsigned char* data,int len,int id,unsigned int timestamp,int freq_id)
159
179
{
160
 
  extern int write_dxr2(unsigned char *data, int len);
 
180
  int write_dxr2(const unsigned char *data, int len);
161
181
  
162
182
  if(dxr2_fd < 0) {
163
183
    mp_msg(MSGT_AO,MSGL_ERR,"DXR2 fd is not valid\n");
176
196
// it should round it down to outburst*n
177
197
// return: number of bytes played
178
198
static int play(void* data,int len,int flags){
179
 
  extern int write_dxr2(unsigned char *data, int len);
 
199
  int write_dxr2(const unsigned char *data, int len);
180
200
 
181
201
  // MPEG and AC3 don't work :-(
182
202
    if(ao_data.format==AF_FORMAT_MPEG2)