~ubuntu-branches/ubuntu/dapper/lmms/dapper

« back to all changes in this revision

Viewing changes to include/audio_sdl.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ragwitz
  • Date: 2005-12-22 16:22:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051222162250-key3p7x0212jy6dn
Tags: 0.1.2-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * audio_sdl.h - device-class that performs PCM-output via SDL
3
3
 *
4
 
 * Linux MultiMedia Studio
5
 
 * Copyright (c) 2004-2005 Tobias Doerffel <tobydox@users.sourceforge.net>
 
4
 * Copyright (c) 2004-2005 Tobias Doerffel <tobydox/at/users.sourceforge.net>
 
5
 * 
 
6
 * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
6
7
 *
7
8
 * This program is free software; you can redistribute it and/or
8
9
 * modify it under the terms of the GNU General Public
36
37
#endif
37
38
 
38
39
 
39
 
#include "qt3support.h"
40
 
 
41
 
#ifdef QT4
42
 
 
43
 
#include <QMutex>
44
 
 
45
 
#else
46
 
 
47
 
#include <qmutex.h>
48
 
 
49
 
#endif
50
 
 
51
40
#include SDL_SDL_H
52
41
#include SDL_SDL_AUDIO_H
53
42
 
86
75
 
87
76
 
88
77
private:
89
 
        virtual void FASTCALL writeBufferToDev( surroundSampleFrame * _ab,
90
 
                                                Uint32 _frames,
91
 
                                                float _master_output );
92
 
 
93
 
        void clearBuffer( void );
 
78
        virtual void startProcessing( void );
 
79
        virtual void stopProcessing( void );
94
80
 
95
81
        static void sdlAudioCallback( void * _udata, Uint8 * _buf, int _len );
96
82
 
97
83
        SDL_AudioSpec m_audioHandle;
98
84
 
99
 
        outputSampleType * m_buffer;
100
 
 
101
 
        QMutex m_bufMutex;
102
 
        QMutex m_callbackMutex;
 
85
        surroundSampleFrame * m_outBuf;
103
86
 
104
87
        bool m_convertEndian;
105
88