LMMS
Loading...
Searching...
No Matches
plugins
CarlaBase
carla
source
modules
water
streams
FileInputSource.h
Go to the documentation of this file.
1
/*
2
==============================================================================
3
4
This file is part of the Water library.
5
Copyright (c) 2016 ROLI Ltd.
6
Copyright (C) 2017-2022 Filipe Coelho <falktx@falktx.com>
7
8
Permission is granted to use this software under the terms of the ISC license
9
http://www.isc.org/downloads/software-support-policy/isc-license/
10
11
Permission to use, copy, modify, and/or distribute this software for any
12
purpose with or without fee is hereby granted, provided that the above
13
copyright notice and this permission notice appear in all copies.
14
15
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD
16
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17
FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
18
OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
19
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
21
OF THIS SOFTWARE.
22
23
==============================================================================
24
*/
25
26
#ifndef WATER_FILEINPUTSOURCE_H_INCLUDED
27
#define WATER_FILEINPUTSOURCE_H_INCLUDED
28
29
#include "
../files/File.h
"
30
31
namespace
water
{
32
33
//==============================================================================
39
class
FileInputSource
40
{
41
public
:
42
//==============================================================================
44
FileInputSource
(
const
File
&
file
);
45
47
~FileInputSource
();
48
49
InputStream
*
createInputStream
();
50
InputStream
*
createInputStreamFor
(
const
String
& relatedItemPath);
51
52
private
:
53
//==============================================================================
54
const
File
file
;
55
56
CARLA_DECLARE_NON_COPYABLE
(
FileInputSource
)
57
};
58
59
}
60
61
#endif
// WATER_FILEINPUTSOURCE_H_INCLUDED
CARLA_DECLARE_NON_COPYABLE
#define CARLA_DECLARE_NON_COPYABLE(ClassName)
Definition
CarlaDefines.h:242
File.h
water::File
Definition
File.h:50
water::FileInputSource::createInputStream
InputStream * createInputStream()
Definition
FileInputSource.cpp:37
water::FileInputSource::~FileInputSource
~FileInputSource()
Definition
FileInputSource.cpp:33
water::FileInputSource::FileInputSource
FileInputSource(const File &file)
Definition
FileInputSource.cpp:30
water::FileInputSource::file
const File file
Definition
FileInputSource.h:54
water::FileInputSource::createInputStreamFor
InputStream * createInputStreamFor(const String &relatedItemPath)
Definition
FileInputSource.cpp:42
water::InputStream
Definition
InputStream.h:42
water::String
Definition
String.h:48
water
Definition
AudioSampleBuffer.h:33
Generated on
for LMMS by
1.16.1