3
* Copyright (C) Remigiusz Dybka 2009 <remigiusz.dybka@gmail.com>
5
Zaz is free software: you can redistribute it and/or modify it
6
under the terms of the GNU General Public License as published by the
7
Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
10
Zaz is distributed in the hope that it will be useful, but
11
WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
See the GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License along
16
with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef __AUDIOBUFFER_H__
20
#define __AUDIOBUFFER_H__
39
uint PanAndMix(uint req_length = 0);
46
Sint16 *getMix(uint requested_length, uint &returned_length);
47
void Play(Sample *smpl, int vol, int pan, bool loop);
50
bool operator==(const Sample *s)
58
void Reset(); // useful if we don't want that sample requeued (because it's deleted)
65
#endif // __AUDIOBUFFER_H__