added implementation of PaHost_IsInitialized()
migrated PaHost_GetStreamRepresentation() from pa_win_wmme.c
This commit is contained in:
parent
8d13d1df28
commit
7f295afdc7
1 changed files with 16 additions and 0 deletions
|
|
@ -478,6 +478,17 @@ double Pa_GetCPULoad( PortAudioStream* stream)
|
|||
return past->past_Usage;
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
internalPortAudioStream* PaHost_GetStreamRepresentation( PortAudioStream *stream )
|
||||
{
|
||||
internalPortAudioStream* result = (internalPortAudioStream*) stream;
|
||||
|
||||
if( result == NULL || result->past_Magic != PA_MAGIC )
|
||||
return NULL;
|
||||
else
|
||||
return result;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
** Calculate 2 LSB dither signal with a triangular distribution.
|
||||
** Ranged properly for adding to a 32 bit integer prior to >>15.
|
||||
|
|
@ -754,6 +765,11 @@ PaError Pa_Terminate( void )
|
|||
return result;
|
||||
}
|
||||
|
||||
int PaHost_IsInitialized()
|
||||
{
|
||||
return gInitCount;
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
PaError Pa_GetSampleSize( PaSampleFormat format )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue