File: sounds.h

package info (click to toggle)
linpac 0.24-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,764 kB
  • ctags: 2,761
  • sloc: cpp: 17,368; sh: 10,621; ansic: 4,033; makefile: 186; perl: 101
file content (46 lines) | stat: -rw-r--r-- 1,210 bytes parent folder | download | duplicates (7)
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
/*==========================================================================
   LinPac: Packet Radio Terminal for Linux
   (c) Radek Burget OK2JBG (xburge01@stud.fee.vutbr.cz) 1998

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version
   2 of the license, or (at your option) any later version.

   sounds.h

   Sound signal class

   Last update 31.10.1999
  =========================================================================*/
#ifndef SOUNDS_H
#define SOUNDS_H

#include "event.h"

//Class Sound - produce sounds when some events occur
class Sound : public Object
{
  private:
    int console;
    bool ready;

  public:
    Sound();
    virtual ~Sound();
    virtual void handle_event(const Event &);

  private:
    void sound(int frequency);   //start generating the sound
    void nosound();              //stop generating the sound
    void wait(int micros);       //wait for specifiend number of micro-seconds

    void connect_sound();
    void disconnect_sound();
    void failure_sound();
    void request_sound();
    void knax_sound();
};

#endif