~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to synti/stklib/StrmWvOut.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
/*
 
3
  StrmWvOut Audio Output Class,
 
4
  by Gary P. Scavone, 2000
 
5
 
 
6
  This object inherits from WvOut and is used
 
7
  to send 16-bit data (signed integer) via
 
8
  a socket connection (streamed audio).
 
9
  Streamed data must be in big-endian format,
 
10
  which conforms to network byte ordering.
 
11
 
 
12
  This class connects to a socket server, the
 
13
  port and IP address of which must be specified
 
14
  as constructor arguments.  Actual data writing
 
15
  and buffering takes place in a thread.
 
16
*/
 
17
/******************************************/
 
18
 
 
19
#if !defined(__StrmWvOut_h)
 
20
#define __StrmWvOut_h
 
21
 
 
22
#include "Object.h"
 
23
#include "WvOut.h"
 
24
 
 
25
class StrmWvOut : public WvOut
 
26
{
 
27
 protected:
 
28
  int local_socket;
 
29
 public:
 
30
  StrmWvOut(int port, const char *hostname = "localhost", int chans = 1);
 
31
  ~StrmWvOut();
 
32
  void tick(MY_FLOAT sample);
 
33
  void mtick(MY_MULTI samples);
 
34
};
 
35
 
 
36
#endif // defined(__StrmWvOut_h)