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 29BSamples::BSamples() 30{ 31 if (be_synth == NULL) 32 { 33 new BSynth(); 34 } 35} 36 37//------------------------------------------------------------------------------ 38 39BSamples::~BSamples() 40{ 41 // do nothing 42} 43 44//------------------------------------------------------------------------------ 45 46void BSamples::Start( 47 void* sampleData, int32 frames, int16 bytes_per_sample, 48 int16 channel_count, double pitch, int32 loopStart, int32 loopEnd, 49 double sampleVolume, double stereoPosition, int32 hook_arg, 50 sample_loop_hook pLoopContinueProc, sample_exit_hook pDoneProc) 51{ 52 fprintf(stderr, "[midi] BSamples is not supported\n"); 53} 54 55//------------------------------------------------------------------------------ 56 57bool BSamples::IsPaused(void) const 58{ 59 fprintf(stderr, "[midi] BSamples is not supported\n"); 60 return false; 61} 62 63//------------------------------------------------------------------------------ 64 65void BSamples::Pause(void) 66{ 67 fprintf(stderr, "[midi] BSamples is not supported\n"); 68} 69 70//------------------------------------------------------------------------------ 71 72void BSamples::Resume(void) 73{ 74 fprintf(stderr, "[midi] BSamples is not supported\n"); 75} 76 77//------------------------------------------------------------------------------ 78 79void BSamples::Stop(void) 80{ 81 fprintf(stderr, "[midi] BSamples is not supported\n"); 82} 83 84//------------------------------------------------------------------------------ 85 86bool BSamples::IsPlaying(void) const 87{ 88 fprintf(stderr, "[midi] BSamples is not supported\n"); 89 return false; 90} 91 92//------------------------------------------------------------------------------ 93 94void BSamples::SetVolume(double newVolume) 95{ 96 fprintf(stderr, "[midi] BSamples is not supported\n"); 97} 98 99//------------------------------------------------------------------------------ 100 101double BSamples::Volume(void) const 102{ 103 fprintf(stderr, "[midi] BSamples is not supported\n"); 104 return 0; 105} 106 107//------------------------------------------------------------------------------ 108 109void BSamples::SetSamplingRate(double newRate) 110{ 111 fprintf(stderr, "[midi] BSamples is not supported\n"); 112} 113 114//------------------------------------------------------------------------------ 115 116double BSamples::SamplingRate(void) const 117{ 118 fprintf(stderr, "[midi] BSamples is not supported\n"); 119 return 0; 120} 121 122//------------------------------------------------------------------------------ 123 124void BSamples::SetPlacement(double stereoPosition) 125{ 126 fprintf(stderr, "[midi] BSamples is not supported\n"); 127} 128 129//------------------------------------------------------------------------------ 130 131double BSamples::Placement(void) const 132{ 133 fprintf(stderr, "[midi] BSamples is not supported\n"); 134 return 0; 135} 136 137//------------------------------------------------------------------------------ 138 139void BSamples::EnableReverb(bool useReverb) 140{ 141 fprintf(stderr, "[midi] BSamples is not supported\n"); 142} 143 144//------------------------------------------------------------------------------ 145 146void BSamples::_ReservedSamples1() { } 147void BSamples::_ReservedSamples2() { } 148void BSamples::_ReservedSamples3() { } 149 150//------------------------------------------------------------------------------ 151