removed warnings
This commit is contained in:
parent
2387a49ba0
commit
c4ae143efa
2 changed files with 16 additions and 16 deletions
|
@ -247,6 +247,7 @@ int CSound::Init ( const int iNewPrefMonoBufferSize )
|
||||||
{
|
{
|
||||||
UInt32 iActualMonoBufferSize;
|
UInt32 iActualMonoBufferSize;
|
||||||
|
|
||||||
|
|
||||||
// try to set input buffer size
|
// try to set input buffer size
|
||||||
iActualMonoBufferSize =
|
iActualMonoBufferSize =
|
||||||
SetBufferSize ( audioInputDevice, true, iNewPrefMonoBufferSize );
|
SetBufferSize ( audioInputDevice, true, iNewPrefMonoBufferSize );
|
||||||
|
@ -328,14 +329,13 @@ OSStatus CSound::processInput ( void* inRefCon,
|
||||||
const AudioTimeStamp* inTimeStamp,
|
const AudioTimeStamp* inTimeStamp,
|
||||||
UInt32 inBusNumber,
|
UInt32 inBusNumber,
|
||||||
UInt32 inNumberFrames,
|
UInt32 inNumberFrames,
|
||||||
AudioBufferList* ioData )
|
AudioBufferList* )
|
||||||
{
|
{
|
||||||
CSound* pSound = reinterpret_cast<CSound*> ( inRefCon );
|
CSound* pSound = reinterpret_cast<CSound*> ( inRefCon );
|
||||||
|
|
||||||
QMutexLocker locker ( &pSound->Mutex );
|
QMutexLocker locker ( &pSound->Mutex );
|
||||||
|
|
||||||
// get the new audio data
|
// get the new audio data
|
||||||
ComponentResult err =
|
|
||||||
AudioUnitRender ( pSound->audioInputUnit,
|
AudioUnitRender ( pSound->audioInputUnit,
|
||||||
ioActionFlags,
|
ioActionFlags,
|
||||||
inTimeStamp,
|
inTimeStamp,
|
||||||
|
@ -350,10 +350,10 @@ OSStatus CSound::processInput ( void* inRefCon,
|
||||||
}
|
}
|
||||||
|
|
||||||
OSStatus CSound::processOutput ( void* inRefCon,
|
OSStatus CSound::processOutput ( void* inRefCon,
|
||||||
AudioUnitRenderActionFlags* ioActionFlags,
|
AudioUnitRenderActionFlags*,
|
||||||
const AudioTimeStamp* inTimeStamp,
|
const AudioTimeStamp*,
|
||||||
UInt32 inBusNumber,
|
UInt32,
|
||||||
UInt32 inNumberFrames,
|
UInt32,
|
||||||
AudioBufferList* ioData )
|
AudioBufferList* ioData )
|
||||||
{
|
{
|
||||||
CSound* pSound = reinterpret_cast<CSound*> ( inRefCon );
|
CSound* pSound = reinterpret_cast<CSound*> ( inRefCon );
|
||||||
|
|
|
@ -66,10 +66,10 @@ protected:
|
||||||
// callbacks
|
// callbacks
|
||||||
static OSStatus processInput ( void* inRefCon,AudioUnitRenderActionFlags* ioActionFlags,
|
static OSStatus processInput ( void* inRefCon,AudioUnitRenderActionFlags* ioActionFlags,
|
||||||
const AudioTimeStamp* inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames,
|
const AudioTimeStamp* inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames,
|
||||||
AudioBufferList* ioData );
|
AudioBufferList* );
|
||||||
|
|
||||||
static OSStatus processOutput ( void* inRefCon,AudioUnitRenderActionFlags* ioActionFlags,
|
static OSStatus processOutput ( void* inRefCon,AudioUnitRenderActionFlags*,
|
||||||
const AudioTimeStamp* inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames,
|
const AudioTimeStamp*, UInt32, UInt32,
|
||||||
AudioBufferList* ioData );
|
AudioBufferList* ioData );
|
||||||
|
|
||||||
ComponentInstance audioInputUnit;
|
ComponentInstance audioInputUnit;
|
||||||
|
|
Loading…
Reference in a new issue