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

« back to all changes in this revision

Viewing changes to mpeglib/lib/output/audioDataArray.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
  fifo for audioData
 
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 __AUDIODATAARRAY_H
 
16
#define __AUDIODATAARRAY_H
 
17
 
 
18
#include "../util/abstract/abs_thread.h"
 
19
#include "audioData.h"
 
20
 
 
21
 
 
22
class AudioDataArray {
 
23
 
 
24
  AudioData** audioDataArray;
 
25
  int fillgrade;
 
26
  int entries;
 
27
  
 
28
  int writePos;
 
29
  int readPos;
 
30
  int pcmSum;
 
31
 
 
32
 public:
 
33
  AudioDataArray(int entries);
 
34
  ~AudioDataArray();
 
35
 
 
36
  int insertAudioData(AudioData* src);
 
37
  AudioData* readAudioData();
 
38
 
 
39
  int getFillgrade();
 
40
  int getPCMSum();
 
41
  void forward();
 
42
  void clear();
 
43
 
 
44
 private:
 
45
  void lockStampArray();
 
46
  void unlockStampArray();
 
47
  void internalForward();
 
48
  
 
49
  abs_thread_mutex_t writeInMut;
 
50
  abs_thread_mutex_t changeMut;
 
51
 
 
52
 
 
53
 
 
54
};
 
55
#endif