further merge fixes
This commit is contained in:
parent
bac89e358a
commit
1fdfabc2d0
10 changed files with 31 additions and 36 deletions
|
@ -29,9 +29,9 @@
|
||||||
CSound::CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* arg ),
|
CSound::CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* arg ),
|
||||||
void* arg,
|
void* arg,
|
||||||
const int iCtrlMIDIChannel,
|
const int iCtrlMIDIChannel,
|
||||||
const bool bNoAutoJackConnect,
|
const bool ,
|
||||||
const QString& strJackClientName ) :
|
const QString& ) :
|
||||||
CSoundBase ( "OpenSL", true, fpNewProcessCallback, arg, iCtrlMIDIChannel, bNoAutoJackConnect, strJackClientName )
|
CSoundBase ( "OpenSL", true, fpNewProcessCallback, arg, iCtrlMIDIChannel )
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,11 +35,11 @@
|
||||||
class CSound : public CSoundBase
|
class CSound : public CSoundBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* arg ),
|
CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* arg ),
|
||||||
void* arg,
|
void* arg,
|
||||||
const int iCtrlMIDIChannel,
|
const int iCtrlMIDIChannel,
|
||||||
const bool bNoAutoJackConnect,
|
const bool ,
|
||||||
const QString& strJackClientName );
|
const QString& );
|
||||||
virtual ~CSound() {}
|
virtual ~CSound() {}
|
||||||
|
|
||||||
virtual int Init ( const int iNewPrefMonoBufferSize );
|
virtual int Init ( const int iNewPrefMonoBufferSize );
|
||||||
|
|
|
@ -27,7 +27,8 @@
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
|
||||||
#ifdef WITH_SOUND
|
#ifdef WITH_SOUND
|
||||||
void CSound::OpenJack ( const char* jackClientName )
|
void CSound::OpenJack ( const bool bNoAutoJackConnect,
|
||||||
|
const char* jackClientName )
|
||||||
{
|
{
|
||||||
jack_status_t JackStatus;
|
jack_status_t JackStatus;
|
||||||
|
|
||||||
|
|
|
@ -65,8 +65,8 @@ public:
|
||||||
const int iCtrlMIDIChannel,
|
const int iCtrlMIDIChannel,
|
||||||
const bool bNoAutoJackConnect,
|
const bool bNoAutoJackConnect,
|
||||||
const QString& strJackClientName ) :
|
const QString& strJackClientName ) :
|
||||||
CSoundBase ( "Jack", true, fpNewProcessCallback, arg, iCtrlMIDIChannel, bNoAutoJackConnect, strJackClientName ),
|
CSoundBase ( "Jack", true, fpNewProcessCallback, arg, iCtrlMIDIChannel ),
|
||||||
iJACKBufferSizeMono ( 0 ) { OpenJack ( strJackClientName.toLocal8Bit().data() ); }
|
iJACKBufferSizeMono ( 0 ) { OpenJack ( bNoAutoJackConnect, strJackClientName.toLocal8Bit().data() ); }
|
||||||
|
|
||||||
virtual ~CSound() { CloseJack(); }
|
virtual ~CSound() { CloseJack(); }
|
||||||
|
|
||||||
|
@ -87,7 +87,9 @@ public:
|
||||||
jack_port_t* input_port_midi;
|
jack_port_t* input_port_midi;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void OpenJack ( const char* jackClientName );
|
void OpenJack ( const bool bNoAutoJackConnect,
|
||||||
|
const char* jackClientName );
|
||||||
|
|
||||||
void CloseJack();
|
void CloseJack();
|
||||||
|
|
||||||
// callbacks
|
// callbacks
|
||||||
|
@ -104,9 +106,9 @@ public:
|
||||||
CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* pParg ),
|
CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* pParg ),
|
||||||
void* pParg,
|
void* pParg,
|
||||||
const int iCtrlMIDIChannel,
|
const int iCtrlMIDIChannel,
|
||||||
const bool bNoAutoJackConnect,
|
const bool ,
|
||||||
const QString& strJackClientName ) :
|
const QString& ) :
|
||||||
CSoundBase ( "nosound", false, fpNewProcessCallback, pParg, iCtrlMIDIChannel, bNoAutoJackConnect, strJackClientName ) {}
|
CSoundBase ( "nosound", false, fpNewProcessCallback, pParg, iCtrlMIDIChannel ) {}
|
||||||
virtual ~CSound() {}
|
virtual ~CSound() {}
|
||||||
};
|
};
|
||||||
#endif // WITH_SOUND
|
#endif // WITH_SOUND
|
||||||
|
|
|
@ -29,9 +29,9 @@
|
||||||
CSound::CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* arg ),
|
CSound::CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* arg ),
|
||||||
void* arg,
|
void* arg,
|
||||||
const int iCtrlMIDIChannel,
|
const int iCtrlMIDIChannel,
|
||||||
const bool bNoAutoJackConnect,
|
const bool ,
|
||||||
QString& strJackClientName ) :
|
QString& ) :
|
||||||
CSoundBase ( "CoreAudio", true, fpNewProcessCallback, arg, iCtrlMIDIChannel, bNoAutoJackConnect, strJackClientName ),
|
CSoundBase ( "CoreAudio", true, fpNewProcessCallback, arg, iCtrlMIDIChannel ),
|
||||||
midiInPortRef ( static_cast<MIDIPortRef> ( NULL ) )
|
midiInPortRef ( static_cast<MIDIPortRef> ( NULL ) )
|
||||||
{
|
{
|
||||||
// Apple Mailing Lists: Subject: GUI Apps should set kAudioHardwarePropertyRunLoop
|
// Apple Mailing Lists: Subject: GUI Apps should set kAudioHardwarePropertyRunLoop
|
||||||
|
|
|
@ -39,8 +39,8 @@ public:
|
||||||
CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* arg ),
|
CSound ( void (*fpNewProcessCallback) ( CVector<short>& psData, void* arg ),
|
||||||
void* arg,
|
void* arg,
|
||||||
const int iCtrlMIDIChannel,
|
const int iCtrlMIDIChannel,
|
||||||
const bool bNoAutoJackConnect,
|
const bool ,
|
||||||
const QString& strJackClientName );
|
const QString& );
|
||||||
|
|
||||||
virtual int Init ( const int iNewPrefMonoBufferSize );
|
virtual int Init ( const int iNewPrefMonoBufferSize );
|
||||||
virtual void Start();
|
virtual void Start();
|
||||||
|
|
|
@ -30,16 +30,12 @@ CSoundBase::CSoundBase ( const QString& strNewSystemDriverTechniqueName,
|
||||||
const bool bNewIsCallbackAudioInterface,
|
const bool bNewIsCallbackAudioInterface,
|
||||||
void (*fpNewProcessCallback) ( CVector<int16_t>& psData, void* pParg ),
|
void (*fpNewProcessCallback) ( CVector<int16_t>& psData, void* pParg ),
|
||||||
void* pParg,
|
void* pParg,
|
||||||
const int iNewCtrlMIDIChannel,
|
const int iNewCtrlMIDIChannel ) :
|
||||||
const bool bNewNoAutoJackConnect,
|
|
||||||
const QString& strNewJackClientName ) :
|
|
||||||
fpProcessCallback ( fpNewProcessCallback ),
|
fpProcessCallback ( fpNewProcessCallback ),
|
||||||
pProcessCallbackArg ( pParg ), bRun ( false ),
|
pProcessCallbackArg ( pParg ), bRun ( false ),
|
||||||
bIsCallbackAudioInterface ( bNewIsCallbackAudioInterface ),
|
bIsCallbackAudioInterface ( bNewIsCallbackAudioInterface ),
|
||||||
strSystemDriverTechniqueName ( strNewSystemDriverTechniqueName ),
|
strSystemDriverTechniqueName ( strNewSystemDriverTechniqueName ),
|
||||||
iCtrlMIDIChannel ( iNewCtrlMIDIChannel ),
|
iCtrlMIDIChannel ( iNewCtrlMIDIChannel )
|
||||||
bNoAutoJackConnect ( bNewNoAutoJackConnect ),
|
|
||||||
strJackClientName ( strNewJackClientName )
|
|
||||||
{
|
{
|
||||||
// initializations for the sound card names (default)
|
// initializations for the sound card names (default)
|
||||||
lNumDevs = 1;
|
lNumDevs = 1;
|
||||||
|
|
|
@ -51,9 +51,7 @@ public:
|
||||||
const bool bNewIsCallbackAudioInterface,
|
const bool bNewIsCallbackAudioInterface,
|
||||||
void (*fpNewProcessCallback) ( CVector<int16_t>& psData, void* pParg ),
|
void (*fpNewProcessCallback) ( CVector<int16_t>& psData, void* pParg ),
|
||||||
void* pParg,
|
void* pParg,
|
||||||
const int iNewCtrlMIDIChannel,
|
const int iNewCtrlMIDIChannel );
|
||||||
const bool bNewNoAutoJackConnect,
|
|
||||||
const QString& strNewJackClientName );
|
|
||||||
|
|
||||||
virtual int Init ( const int iNewPrefMonoBufferSize );
|
virtual int Init ( const int iNewPrefMonoBufferSize );
|
||||||
virtual void Start();
|
virtual void Start();
|
||||||
|
@ -122,8 +120,6 @@ protected:
|
||||||
bool bIsCallbackAudioInterface;
|
bool bIsCallbackAudioInterface;
|
||||||
QString strSystemDriverTechniqueName;
|
QString strSystemDriverTechniqueName;
|
||||||
int iCtrlMIDIChannel;
|
int iCtrlMIDIChannel;
|
||||||
bool bNoAutoJackConnect;
|
|
||||||
QString strJackClientName;
|
|
||||||
|
|
||||||
CVector<int16_t> vecsAudioSndCrdStereo;
|
CVector<int16_t> vecsAudioSndCrdStereo;
|
||||||
|
|
||||||
|
|
|
@ -486,9 +486,9 @@ void CSound::Stop()
|
||||||
CSound::CSound ( void (*fpNewCallback) ( CVector<int16_t>& psData, void* arg ),
|
CSound::CSound ( void (*fpNewCallback) ( CVector<int16_t>& psData, void* arg ),
|
||||||
void* arg,
|
void* arg,
|
||||||
const int iCtrlMIDIChannel,
|
const int iCtrlMIDIChannel,
|
||||||
const bool bNoAutoJackConnect,
|
const bool ,
|
||||||
const QString& strJackClientName ) :
|
const QString& ) :
|
||||||
CSoundBase ( "ASIO", true, fpNewCallback, arg, iCtrlMIDIChannel, bNoAutoJackConnect, strJackClientName ),
|
CSoundBase ( "ASIO", true, fpNewCallback, arg, iCtrlMIDIChannel ),
|
||||||
lNumInChan ( 0 ),
|
lNumInChan ( 0 ),
|
||||||
lNumInChanPlusAddChan ( 0 ),
|
lNumInChanPlusAddChan ( 0 ),
|
||||||
lNumOutChan ( 0 ),
|
lNumOutChan ( 0 ),
|
||||||
|
|
|
@ -49,8 +49,8 @@ public:
|
||||||
CSound ( void (*fpNewCallback) ( CVector<int16_t>& psData, void* arg ),
|
CSound ( void (*fpNewCallback) ( CVector<int16_t>& psData, void* arg ),
|
||||||
void* arg,
|
void* arg,
|
||||||
const int iCtrlMIDIChannel,
|
const int iCtrlMIDIChannel,
|
||||||
const bool bNoAutoJackConnect,
|
const bool ,
|
||||||
const QString& strJackClientName );
|
const QString& );
|
||||||
|
|
||||||
virtual ~CSound() { UnloadCurrentDriver(); }
|
virtual ~CSound() { UnloadCurrentDriver(); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue