LMMS
Loading...
Searching...
No Matches
plugins
CarlaBase
carla
source
modules
water
streams
FileInputSource.cpp
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-2018 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
#include "
FileInputSource.h
"
27
28
namespace
water
{
29
30
FileInputSource::FileInputSource
(
const
File
&
f
)
31
:
file
(
f
) {}
32
33
FileInputSource::~FileInputSource
()
34
{
35
}
36
37
InputStream
*
FileInputSource::createInputStream
()
38
{
39
return
file
.createInputStream();
40
}
41
42
InputStream
*
FileInputSource::createInputStreamFor
(
const
String
& relatedItemPath)
43
{
44
return
file
.getSiblingFile (relatedItemPath).createInputStream();
45
}
46
47
}
FileInputSource.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
f
unsigned f
Definition
inflate.c:1572
water
Definition
AudioSampleBuffer.h:33
Generated on
for LMMS by
1.16.1