~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/lib/frame/pcmFrame.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  pcm frame description.
 
3
  Copyright (C) 2001  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU Library General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
 
 
15
#ifndef __PCMFRAME_H
 
16
#define __PCMFRAME_H
 
17
 
 
18
 
 
19
#include "audioFrame.h"
 
20
 
 
21
// this format has a sampleSize of 16, signed, endian==machine
 
22
 
 
23
class PCMFrame : public AudioFrame {
 
24
 
 
25
  short int* data;
 
26
  int len;
 
27
  int size;
 
28
 
 
29
 public:
 
30
  PCMFrame(int size);
 
31
  ~PCMFrame();
 
32
 
 
33
  int        getLen()                            { return len; }
 
34
  void       setLen(int len)                     { this->len=len; }
 
35
  int        getSize()                           { return size; }
 
36
  short int* getData()                           { return data; }
 
37
 
 
38
  void       putFloatData(float* data,int len);
 
39
  void       putFloatData(float* left,float* right,int len);
 
40
 
 
41
  void       clearrawdata()                      { len=0; }
 
42
 
 
43
 
 
44
};
 
45
#endif