Assorted whitespace cleanup and typo fixes.
[haiku.git] / src / kits / midi / Samples.cpp
blob65cada7a8b22dbc0ca1285f398693aabeb2c4b85
1 /*
2 * Copyright (c) 2002-2004 Matthijs Hollemans
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
23 #include "debug.h"
24 #include "Samples.h"
25 #include "Synth.h"
27 //------------------------------------------------------------------------------
29 BSamples::BSamples()
31 if (be_synth == NULL)
32 new BSynth();
35 //------------------------------------------------------------------------------
37 BSamples::~BSamples()
39 // do nothing
42 //------------------------------------------------------------------------------
44 void BSamples::Start(
45 void* sampleData, int32 frames, int16 bytes_per_sample,
46 int16 channel_count, double pitch, int32 loopStart, int32 loopEnd,
47 double sampleVolume, double stereoPosition, int32 hook_arg,
48 sample_loop_hook pLoopContinueProc, sample_exit_hook pDoneProc)
50 fprintf(stderr, "[midi] BSamples is not supported\n");
53 //------------------------------------------------------------------------------
55 bool BSamples::IsPaused(void) const
57 fprintf(stderr, "[midi] BSamples is not supported\n");
58 return false;
61 //------------------------------------------------------------------------------
63 void BSamples::Pause(void)
65 fprintf(stderr, "[midi] BSamples is not supported\n");
68 //------------------------------------------------------------------------------
70 void BSamples::Resume(void)
72 fprintf(stderr, "[midi] BSamples is not supported\n");
75 //------------------------------------------------------------------------------
77 void BSamples::Stop(void)
79 fprintf(stderr, "[midi] BSamples is not supported\n");
82 //------------------------------------------------------------------------------
84 bool BSamples::IsPlaying(void) const
86 fprintf(stderr, "[midi] BSamples is not supported\n");
87 return false;
90 //------------------------------------------------------------------------------
92 void BSamples::SetVolume(double newVolume)
94 fprintf(stderr, "[midi] BSamples is not supported\n");
97 //------------------------------------------------------------------------------
99 double BSamples::Volume(void) const
101 fprintf(stderr, "[midi] BSamples is not supported\n");
102 return 0;
105 //------------------------------------------------------------------------------
107 void BSamples::SetSamplingRate(double newRate)
109 fprintf(stderr, "[midi] BSamples is not supported\n");
112 //------------------------------------------------------------------------------
114 double BSamples::SamplingRate(void) const
116 fprintf(stderr, "[midi] BSamples is not supported\n");
117 return 0;
120 //------------------------------------------------------------------------------
122 void BSamples::SetPlacement(double stereoPosition)
124 fprintf(stderr, "[midi] BSamples is not supported\n");
127 //------------------------------------------------------------------------------
129 double BSamples::Placement(void) const
131 fprintf(stderr, "[midi] BSamples is not supported\n");
132 return 0;
135 //------------------------------------------------------------------------------
137 void BSamples::EnableReverb(bool useReverb)
139 fprintf(stderr, "[midi] BSamples is not supported\n");
142 //------------------------------------------------------------------------------
144 void BSamples::_ReservedSamples1() { }
145 void BSamples::_ReservedSamples2() { }
146 void BSamples::_ReservedSamples3() { }
148 //------------------------------------------------------------------------------