~ubuntu-branches/ubuntu/wily/aldo/wily

« back to all changes in this revision

Viewing changes to include/astream.hh

  • Committer: Bazaar Package Importer
  • Author(s): Giuseppe Martino (denever)
  • Date: 2006-04-19 11:53:19 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060419115319-bjhy63yl1tm1jwqh
Tags: 0.7.1-1
* New upstream release Closes: #361926
* Removed TODO in debian/docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- C++ -*-
 
2
/***************************************************************************
 
3
                           libaudiostream
 
4
                          --------------------
 
5
    begin                : Sat 9 Mar 2002
 
6
    copyright            : Giuseppe "denever" Martino
 
7
    email                : denever@users.sourceforge.net
 
8
 ***************************************************************************/
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 *  This program is distributed in the hope that it will be useful,        *
 
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
 
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
 
19
 *  GNU General Public License for more details.                           *
 
20
 *                                                                         *
 
21
 *  You should have received a copy of the GNU General Public License      *
 
22
 *  along with this program; if not, write to the Free Software            *
 
23
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,             *
 
24
 *  MA 02110-1301 USA                                                      *
 
25
 *                                                                         *
 
26
 ***************************************************************************/
 
27
 
 
28
#ifndef AUDIOSTREAM_H
 
29
#define AUDIOSTREAM_H
 
30
 
 
31
#ifdef HAVE_CONFIG_H
 
32
#include "config.h"
 
33
#endif
 
34
 
 
35
#ifdef HAVE_AO_AO_H
 
36
#include <ao/ao.h>
 
37
#endif
 
38
 
 
39
#include "wave.hh"
 
40
#include "audioworkspace.hh"
 
41
#include "audioexcep.hh"
 
42
 
 
43
namespace libaudiostream
 
44
{
 
45
    class oastream
 
46
    {
 
47
    public:
 
48
        oastream(ao_sample_format) throw(AudioException);
 
49
 
 
50
        oastream(const oastream&);
 
51
        
 
52
        ~oastream();
 
53
        
 
54
        oastream& operator<<(const Wave&) throw(AudioException);
 
55
 
 
56
        oastream& operator=(const oastream&);
 
57
    private:
 
58
        ao_device* m_audio;
 
59
        ao_sample_format m_format;
 
60
        unsigned int m_default_driver;
 
61
    };
 
62
}
 
63
 
 
64
#endif //AUDIOSTREAM_H