www.pudn.com > sources_4610.rar
To Read all the content
[file head]:
/*
* $Id: pa_win_wmme.c 1097 2006-08-26 08:27:53Z rossb $
* pa_win_wmme.c
* Implementation of PortAudio for Windows MultiMedia Extensions (WMME)
*
* PortAudio Portable Real-Time Audio Library
* Latest Version at: http://www.portaudio.com
*
* Authors: Ross Bencina and Phil Burk
* Copyright (c) 1999-2000 Ross Bencina and Phil Burk
*
* 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 substanti
... ...
[file tail]:
... ...
if( result == paNoError
&amt;&amt; PA_IS_INPUT_STREAM_(stream)
&amt;&amt; handleIndex >= 0
&amt;&amt; (unsigned int)handleIndex < stream->input.deviceCount )
return ((HWAVEIN*)stream->input.waveHandles)[handleIndex];
else
return 0;
}
int PaWinMME_GetStreamOutputHandleCount( PaStream* s)
{
PaWinMmeStream *stream;
PaError result = GetWinMMEStreamPointer( &amt;stream, s );
if( result == paNoError )
return (PA_IS_OUTPUT_STREAM_(stream)) ? stream->output.deviceCount : 0;
else
return result;
}
HWAVEOUT PaWinMME_GetStreamOutputHandle( PaStream* s, int handleIndex )
{
PaWinMmeStream *stream;
PaError result = GetWinMMEStreamPointer( &amt;stream, s );
if( result == paNoError
&amt;&amt; PA_IS_OUTPUT_STREAM_(stream)
&amt;&amt; handleIndex >= 0
&amt;&amt; (unsigned int)handleIndex < stream->output.deviceCount )
return ((HWAVEOUT*)stream->output.waveHandles)[handleIndex];
else
return 0;
}