9138338c72
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7559 a95241bf-73f2-0310-859d-f6bbb57e9c96
234 lines
5.7 KiB
C++
234 lines
5.7 KiB
C++
/*
|
|
* Copyright (c) 2002-2004 Matthijs Hollemans
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#include "debug.h"
|
|
#include "MidiSynth.h"
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
BMidiSynth::BMidiSynth()
|
|
{
|
|
/* not complete yet */
|
|
|
|
if (be_synth == NULL)
|
|
{
|
|
new BSynth();
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
BMidiSynth::~BMidiSynth()
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
status_t BMidiSynth::EnableInput(bool enable, bool loadInstruments)
|
|
{
|
|
UNIMPLEMENTED
|
|
return B_ERROR;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
bool BMidiSynth::IsInputEnabled(void) const
|
|
{
|
|
UNIMPLEMENTED
|
|
return false;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::SetVolume(double volume)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
double BMidiSynth::Volume(void) const
|
|
{
|
|
UNIMPLEMENTED
|
|
return 0;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::SetTransposition(int16 offset)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
int16 BMidiSynth::Transposition(void) const
|
|
{
|
|
UNIMPLEMENTED
|
|
return 0;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::MuteChannel(int16 channel, bool do_mute)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::GetMuteMap(char* pChannels) const
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::SoloChannel(int16 channel, bool do_solo)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::GetSoloMap(char* pChannels) const
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
status_t BMidiSynth::LoadInstrument(int16 instrument)
|
|
{
|
|
UNIMPLEMENTED
|
|
return B_ERROR;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
status_t BMidiSynth::UnloadInstrument(int16 instrument)
|
|
{
|
|
UNIMPLEMENTED
|
|
return B_ERROR;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
status_t BMidiSynth::RemapInstrument(int16 from, int16 to)
|
|
{
|
|
UNIMPLEMENTED
|
|
return B_ERROR;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::FlushInstrumentCache(bool startStopCache)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
uint32 BMidiSynth::Tick(void) const
|
|
{
|
|
UNIMPLEMENTED
|
|
return 0;
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::NoteOff(
|
|
uchar channel, uchar note, uchar velocity, uint32 time)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::NoteOn(
|
|
uchar channel, uchar note, uchar velocity, uint32 time)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::KeyPressure(
|
|
uchar channel, uchar note, uchar pressure, uint32 time)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::ControlChange(
|
|
uchar channel, uchar controlNumber, uchar controlValue, uint32 time)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::ProgramChange(
|
|
uchar channel, uchar programNumber, uint32 time)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::ChannelPressure(uchar channel, uchar pressure, uint32 time)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::PitchBend(uchar channel, uchar lsb, uchar msb, uint32 time)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::AllNotesOff(bool controlOnly, uint32 time)
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::_ReservedMidiSynth1() { }
|
|
void BMidiSynth::_ReservedMidiSynth2() { }
|
|
void BMidiSynth::_ReservedMidiSynth3() { }
|
|
void BMidiSynth::_ReservedMidiSynth4() { }
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
void BMidiSynth::Run()
|
|
{
|
|
UNIMPLEMENTED
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|