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

« back to all changes in this revision

Viewing changes to mpeglib/lib/output/audioData.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
  describes a paket oriented audioData, because Im fed up
 
3
  Copyright (C) 1999  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 __AUDIODATA_H
 
16
#define __AUDIODATA_H
 
17
 
 
18
#include "../util/timeStamp.h"
 
19
#include "audioTime.h"
 
20
 
 
21
 
 
22
#define _AUDIODATA_MAX_SIZE      8192
 
23
 
 
24
 
 
25
/**
 
26
   My attempt to encapsulate all this stupid things which deals
 
27
   with timing, synchronisation, length, stamps and everything
 
28
   unimaginable else.
 
29
*/
 
30
 
 
31
 
 
32
 
 
33
class AudioData {
 
34
 
 
35
 
 
36
  AudioTime* audioTime;
 
37
  TimeStamp* start;
 
38
  TimeStamp* end;
 
39
  TimeStamp* writeStamp;
 
40
 
 
41
  int pcmLen;
 
42
 
 
43
 public:
 
44
  AudioData();
 
45
  ~AudioData();
 
46
  
 
47
  void copyTo(AudioData* dest);
 
48
 
 
49
  
 
50
  int getPCMLen();
 
51
  void setPCMLen(int pcmLen);
 
52
 
 
53
  void setAudioTime(AudioTime* audioTime);
 
54
  AudioTime* getAudioTime();
 
55
 
 
56
  void setStart(TimeStamp* start);
 
57
  TimeStamp* getStart();
 
58
  
 
59
  void setWrite(TimeStamp* writeStamp);
 
60
  TimeStamp* getWrite();
 
61
  
 
62
 
 
63
  void setEnd(TimeStamp* end);
 
64
  TimeStamp* getEnd();
 
65
 
 
66
  void print();
 
67
};
 
68
#endif
 
69
 
 
70
 
 
71