~ubuntu-branches/ubuntu/breezy/muse/breezy

« back to all changes in this revision

Viewing changes to sf/wav.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2004-02-07 15:18:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040207151822-es27xxkzbcxkebjm
Tags: 0.6.3-1
* New upstream version.
* Added patches:
  + [10_alsa_init_fix] New, from upstream CVS.
    Initialize direction variable when setting Alsa parameters.
  + [10_canvas_translation_fix] New, from upstream CVS.
    Do not translate tooltips twice in canvas popup.
  + [10_checkbox_fix] New, from upstream CVS.
    Use proper set/test methods on metronome checkboxes.
  + [10_html_doc_cleanup] New.
    Fix links and HTML errors in documentation.
  + [20_allow_system_timer] New.
    The new upstream version fails by default if the real-time clock
    could not be accessed (usually the case when not running suid-root).
    This patch reverts the old behaviour of falling back to the more
    inaccurate system timer.
* Updated patches:
  + [11_PIC_fixes_fixup] Rediffed.
* Removed patches:
  + [20_no_atomic_asm] Merged upstream.
* debian/compat: Splice out debhelper compatibility level from rules file.
* debian/control: Build-depend on latest jack release by default.
  Closes: #228788
* debian/control: Bump standards version.
* debian/control: Use auto-generated debconf dependency via misc:Depends.
* debian/control: Minor tweaks to the long description.
* debian/control: Tighten fluidsynth build dependency to sane version.
* debian/muse.doc-base: New. Register HTML documentation with doc-base.
* debian/templates: Tiny rewording, and typo fix.
* debian/templates, debian/po/*: Switch to po-debconf for translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//=========================================================
2
 
//  MusE
3
 
//  Linux Music Editor
4
 
//  $Id: wav.h,v 1.3 2002/02/13 11:42:56 muse Exp $
5
 
//
6
 
//  (C) Copyright 2001 Werner Schweer (ws@seh.de)
7
 
//  based on libsndfile:
8
 
//  Copyright (C) 1999-2000 Erik de Castro Lopo <erikd@zip.com.au>
9
 
//=========================================================
10
 
 
11
 
#ifndef WAV_H_INCLUDED
12
 
#define WAV_H_INCLUDED
13
 
 
14
 
struct MIN_WAV_FMT {    
15
 
      unsigned short    format;
16
 
        unsigned short  channels;
17
 
        unsigned int    samplerate;
18
 
        unsigned int    bytespersec;
19
 
        unsigned short  blockalign;
20
 
        unsigned short  bitwidth;
21
 
      };
22
 
 
23
 
struct WAV_FMT_SIZE20 {
24
 
      unsigned short    format;
25
 
        unsigned short  channels;
26
 
        unsigned int    samplerate;
27
 
        unsigned int    bytespersec;
28
 
        unsigned short  blockalign;
29
 
        unsigned short  bitwidth;
30
 
        unsigned short  extrabytes;
31
 
        unsigned short  dummy;
32
 
      };
33
 
 
34
 
struct MS_ADPCM_WAV_FMT {
35
 
      unsigned short    format;
36
 
        unsigned short  channels;
37
 
        unsigned int    samplerate;
38
 
        unsigned int    bytespersec;
39
 
        unsigned short  blockalign;
40
 
        unsigned short  bitwidth;
41
 
        unsigned short  extrabytes;
42
 
        unsigned short  samplesperblock;
43
 
        unsigned short  numcoeffs;
44
 
        struct {        
45
 
            short coeff1;
46
 
                short   coeff2;
47
 
              } coeffs[7];
48
 
      };
49
 
 
50
 
struct IMA_ADPCM_WAV_FMT {
51
 
      unsigned short    format;
52
 
        unsigned short  channels;
53
 
        unsigned int    samplerate;
54
 
        unsigned int    bytespersec;
55
 
        unsigned short  blockalign;
56
 
        unsigned short  bitwidth;
57
 
        unsigned short  extrabytes;
58
 
        unsigned short  samplesperblock;
59
 
      };
60
 
 
61
 
struct EXT_SUBFORMAT {
62
 
      unsigned int      esf_field1;
63
 
        unsigned short  esf_field2;
64
 
        unsigned short  esf_field3;
65
 
        unsigned char   esf_field4[8];
66
 
      };
67
 
 
68
 
struct EXTENSIBLE_WAV_FMT {
69
 
      unsigned short    format;
70
 
        unsigned short  channels;
71
 
        unsigned int    samplerate;
72
 
        unsigned int    bytespersec;
73
 
        unsigned short  blockalign;
74
 
        unsigned short  bitwidth;
75
 
        unsigned short  extrabytes;
76
 
        unsigned short  validbits;
77
 
        unsigned int    channelmask;
78
 
        EXT_SUBFORMAT   esf;
79
 
      };
80
 
 
81
 
struct GSM610_WAV_FMT {
82
 
      unsigned short    format;
83
 
        unsigned short  channels;
84
 
        unsigned int    samplerate;
85
 
        unsigned int    bytespersec;
86
 
        unsigned short  blockalign;
87
 
        unsigned short  bitwidth;
88
 
        unsigned short  extrabytes;
89
 
        unsigned short  samplesperblock;
90
 
      };
91
 
 
92
 
union WAV_FMT {
93
 
      unsigned short            format;
94
 
        MIN_WAV_FMT                     min;
95
 
        IMA_ADPCM_WAV_FMT             ima;
96
 
        MS_ADPCM_WAV_FMT              msadpcm;
97
 
        EXTENSIBLE_WAV_FMT      ext;
98
 
        GSM610_WAV_FMT          gsm610;
99
 
        WAV_FMT_SIZE20          size20;
100
 
        char                            padding[512];
101
 
      };
102
 
 
103
 
struct FACT_CHUNK {
104
 
      unsigned int samples;
105
 
      };
106
 
 
107
 
//---------------------------------------------------------
108
 
//   SndFileFormat
109
 
//---------------------------------------------------------
110
 
 
111
 
class SndFileFormatWave : public SndFileFormat {
112
 
   public:
113
 
      SndFileFormatWave(SndFile* s) : SndFileFormat(s) {}
114
 
      virtual void close();
115
 
      };
116
 
#endif