~ubuntu-branches/debian/jessie/libsndfile/jessie

« back to all changes in this revision

Viewing changes to src/g72x.c

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2009-02-17 19:21:03 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090217192103-7rhu1n8p79jnbzy3
Tags: 1.0.18-2
Add missing build-dependencies on pkg-config and libvorbis-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
** Copyright (C) 1999-2005 Erik de Castro Lopo <erikd@mega-nerd.com>
 
2
** Copyright (C) 1999-2009 Erik de Castro Lopo <erikd@mega-nerd.com>
3
3
**
4
4
** This program is free software; you can redistribute it and/or modify
5
5
** it under the terms of the GNU Lesser General Public License as published by
21
21
#include <stdio.h>
22
22
#include <stdlib.h>
23
23
#include <string.h>
 
24
#include <math.h>
24
25
 
25
26
#include "sndfile.h"
26
27
#include "sfendian.h"
27
 
#include "float_cast.h"
28
28
#include "common.h"
29
29
#include "G72x/g72x.h"
30
30
 
90
90
        pg72x->block_curr = 0 ;
91
91
        pg72x->sample_curr = 0 ;
92
92
 
93
 
        switch (psf->sf.format & SF_FORMAT_SUBMASK)
 
93
        switch (SF_CODEC (psf->sf.format))
94
94
        {       case SF_FORMAT_G721_32 :
95
95
                                codec = G721_32_BITS_PER_SAMPLE ;
96
96
                                bytesperblock = G721_32_BYTES_PER_BLOCK ;
343
343
} /* g72x_read_d */
344
344
 
345
345
static sf_count_t
346
 
g72x_seek (SF_PRIVATE *psf, int mode, sf_count_t offset)
 
346
g72x_seek (SF_PRIVATE *psf, int UNUSED (mode), sf_count_t UNUSED (offset))
347
347
{
348
 
        /* Prevent compiler warnings. */
349
 
        mode ++ ;
350
 
        offset ++ ;
351
 
 
352
348
        psf_log_printf (psf, "seek unsupported\n") ;
353
349
 
354
350
        /*      No simple solution. To do properly, would need to seek
606
602
        return 0 ;
607
603
} /* g72x_close */
608
604
 
609
 
/*
610
 
** Do not edit or modify anything in this comment block.
611
 
** The arch-tag line is a file identity tag for the GNU Arch
612
 
** revision control system.
613
 
**
614
 
** arch-tag: 3cc5439e-7247-486b-b2e6-11a4affa5744
615
 
*/