~ubuntu-branches/ubuntu/feisty/muse/feisty

« back to all changes in this revision

Viewing changes to audioprefetch.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2002-04-23 17:28:23 UTC
  • Revision ID: james.westby@ubuntu.com-20020423172823-w8yplzr81a759xa3
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//=========================================================
 
2
//  MusE
 
3
//  Linux Music Editor
 
4
//  $Id: audioprefetch.h,v 1.2 2001/11/20 15:19:31 muse Exp $
 
5
//
 
6
//  (C) Copyright 2001 Werner Schweer (ws@seh.de)
 
7
//=========================================================
 
8
 
 
9
#ifndef __AUDIOPREFETCH_H__
 
10
#define __AUDIOPREFETCH_H__
 
11
 
 
12
#include "thread.h"
 
13
 
 
14
 
 
15
enum { PREFETCH_TICK
 
16
      };
 
17
 
 
18
struct PrefetchMsg : public ThreadMsg {
 
19
      int pos;
 
20
      int bufferNo;
 
21
      };
 
22
 
 
23
//---------------------------------------------------------
 
24
//   AudioThread
 
25
//---------------------------------------------------------
 
26
 
 
27
class AudioPrefetch : public Thread {
 
28
      int currentFrameSize;
 
29
 
 
30
      virtual void processMsg1(const void*);
 
31
      void prefetch(int pos, int bufferNo);
 
32
 
 
33
   public:
 
34
      AudioPrefetch(bool rt=true, int prio=50, bool ml = true);
 
35
      ~AudioPrefetch();
 
36
      virtual void start();
 
37
 
 
38
      void msgTick(int samplePos, int bufferNo);
 
39
      };
 
40
 
 
41
#endif