1 /* 2 * Copyright (c) 2002-2004 Matthijs Hollemans 3 * 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: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 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. 21 */ 22 23 #include "debug.h" 24 #include "Samples.h" 25 #include "Synth.h" 26 27 //------------------------------------------------------------------------------ 28 29 BSamples::BSamples() 30 { 31 if (be_synth == NULL) 32 new BSynth(); 33 } 34 35 //------------------------------------------------------------------------------ 36 37 BSamples::~BSamples() 38 { 39 // do nothing 40 } 41 42 //------------------------------------------------------------------------------ 43 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) 49 { 50 fprintf(stderr, "[midi] BSamples is not supported\n"); 51 } 52 53 //------------------------------------------------------------------------------ 54 55 bool BSamples::IsPaused(void) const 56 { 57 fprintf(stderr, "[midi] BSamples is not supported\n"); 58 return false; 59 } 60 61 //------------------------------------------------------------------------------ 62 63 void BSamples::Pause(void) 64 { 65 fprintf(stderr, "[midi] BSamples is not supported\n"); 66 } 67 68 //------------------------------------------------------------------------------ 69 70 void BSamples::Resume(void) 71 { 72 fprintf(stderr, "[midi] BSamples is not supported\n"); 73 } 74 75 //------------------------------------------------------------------------------ 76 77 void BSamples::Stop(void) 78 { 79 fprintf(stderr, "[midi] BSamples is not supported\n"); 80 } 81 82 //------------------------------------------------------------------------------ 83 84 bool BSamples::IsPlaying(void) const 85 { 86 fprintf(stderr, "[midi] BSamples is not supported\n"); 87 return false; 88 } 89 90 //------------------------------------------------------------------------------ 91 92 void BSamples::SetVolume(double newVolume) 93 { 94 fprintf(stderr, "[midi] BSamples is not supported\n"); 95 } 96 97 //------------------------------------------------------------------------------ 98 99 double BSamples::Volume(void) const 100 { 101 fprintf(stderr, "[midi] BSamples is not supported\n"); 102 return 0; 103 } 104 105 //------------------------------------------------------------------------------ 106 107 void BSamples::SetSamplingRate(double newRate) 108 { 109 fprintf(stderr, "[midi] BSamples is not supported\n"); 110 } 111 112 //------------------------------------------------------------------------------ 113 114 double BSamples::SamplingRate(void) const 115 { 116 fprintf(stderr, "[midi] BSamples is not supported\n"); 117 return 0; 118 } 119 120 //------------------------------------------------------------------------------ 121 122 void BSamples::SetPlacement(double stereoPosition) 123 { 124 fprintf(stderr, "[midi] BSamples is not supported\n"); 125 } 126 127 //------------------------------------------------------------------------------ 128 129 double BSamples::Placement(void) const 130 { 131 fprintf(stderr, "[midi] BSamples is not supported\n"); 132 return 0; 133 } 134 135 //------------------------------------------------------------------------------ 136 137 void BSamples::EnableReverb(bool useReverb) 138 { 139 fprintf(stderr, "[midi] BSamples is not supported\n"); 140 } 141 142 //------------------------------------------------------------------------------ 143 144 void BSamples::_ReservedSamples1() { } 145 void BSamples::_ReservedSamples2() { } 146 void BSamples::_ReservedSamples3() { } 147 148 //------------------------------------------------------------------------------ 149