File: Sound.hxx

package info (click to toggle)
oonsoo 1.2-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,604 kB
  • ctags: 422
  • sloc: cpp: 24,373; makefile: 82
file content (46 lines) | stat: -rw-r--r-- 1,062 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
///////////////////////////////////////////////////////////////////////////////
// $Id: Sound.hxx,v 1.1 1995/01/08 06:48:32 bmott Exp $
///////////////////////////////////////////////////////////////////////////////
//
// Sound.hxx - Sound class
//
//
// Bradford W. Mott
// Copyright (C) 1995
// January 4,1995
//
///////////////////////////////////////////////////////////////////////////////
// $Log: Sound.hxx,v $
// Revision 1.1  1995/01/08  06:48:32  bmott
// Initial revision
//
///////////////////////////////////////////////////////////////////////////////

#ifndef SOUND_HXX
#define SOUND_HXX

#include "SampleCollection.hxx"

enum SoundState { Enabled, Disabled };


class Sound {
  private:
    SampleCollection* mySampleCollection; 
    SoundState myState;

  public:
    // Constructor
    Sound::Sound(SampleCollection* sampleCollection);

    // Destructor 
    virtual ~Sound();

    // Play the named sample
    virtual void playSample(char* sampleName);    

    // Answer my state
    SoundState state() const { return(myState); }
};
#endif