LMMS
Loading...
Searching...
No Matches
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
31namespace water {
32
33//==============================================================================
40{
41public:
42 //==============================================================================
44 FileInputSource (const File& file);
45
48
50 InputStream* createInputStreamFor (const String& relatedItemPath);
51
52private:
53 //==============================================================================
54 const File file;
55
57};
58
59}
60
61#endif // WATER_FILEINPUTSOURCE_H_INCLUDED
#define CARLA_DECLARE_NON_COPYABLE(ClassName)
Definition CarlaDefines.h:242
Definition File.h:50
InputStream * createInputStream()
Definition FileInputSource.cpp:37
~FileInputSource()
Definition FileInputSource.cpp:33
FileInputSource(const File &file)
Definition FileInputSource.cpp:30
const File file
Definition FileInputSource.h:54
InputStream * createInputStreamFor(const String &relatedItemPath)
Definition FileInputSource.cpp:42
Definition InputStream.h:42
Definition String.h:48
Definition AudioSampleBuffer.h:33