diff -wruN orig/audacity/lib-src/portaudio-v19/include/portaudio.h audacity/lib-src/portaudio-v19/include/portaudio.h
|
old
|
new
|
|
| 1105 | 1105 | signed long Pa_GetStreamWriteAvailable( PaStream* stream ); |
| 1106 | 1106 | |
| 1107 | 1107 | |
| | 1108 | /** Retrieve the host type handling an open stream. |
| | 1109 | |
| | 1110 | @return Returns a non-negative value representing the host API type |
| | 1111 | handling an open stream or, a PaErrorCode (which are always negative) |
| | 1112 | if PortAudio is not initialized or an error is encountered. |
| | 1113 | */ |
| | 1114 | PaHostApiTypeId Pa_GetStreamHostApiType( PaStream* stream ); |
| | 1115 | |
| | 1116 | |
| 1108 | 1117 | /* Miscellaneous utilities */ |
| 1109 | 1118 | |
| 1110 | 1119 | |
diff -wruN orig/audacity/lib-src/portaudio-v19/src/common/pa_front.c audacity/lib-src/portaudio-v19/src/common/pa_front.c
|
old
|
new
|
|
| 1327 | 1327 | hostApiInputParametersPtr, hostApiOutputParametersPtr, |
| 1328 | 1328 | sampleRate, framesPerBuffer, streamFlags, streamCallback, userData ); |
| 1329 | 1329 | |
| 1330 | | if( result == paNoError ) |
| | 1330 | if( result == paNoError ) { |
| 1331 | 1331 | AddOpenStream( *stream ); |
| | 1332 | PA_STREAM_REP(*stream)->hostApiType = hostApi->info.type; |
| | 1333 | } |
| 1332 | 1334 | |
| 1333 | 1335 | |
| 1334 | 1336 | #ifdef PA_LOG_API_CALLS |
| … |
… |
|
| 1915 | 1917 | } |
| 1916 | 1918 | |
| 1917 | 1919 | |
| | 1920 | PaHostApiTypeId Pa_GetStreamHostApiType( PaStream* stream ) |
| | 1921 | { |
| | 1922 | PaError error = PaUtil_ValidateStreamPointer( stream ); |
| | 1923 | PaHostApiTypeId result; |
| | 1924 | |
| | 1925 | #ifdef PA_LOG_API_CALLS |
| | 1926 | PaUtil_DebugPrint("Pa_GetStreamHostApiType called:\n" ); |
| | 1927 | PaUtil_DebugPrint("\tPaStream* stream: 0x%p\n", stream ); |
| | 1928 | #endif |
| | 1929 | |
| | 1930 | if( error == paNoError ) |
| | 1931 | { |
| | 1932 | result = PA_STREAM_REP(stream)->hostApiType; |
| | 1933 | } |
| | 1934 | else |
| | 1935 | { |
| | 1936 | result = (PaHostApiTypeId) error; |
| | 1937 | } |
| | 1938 | |
| | 1939 | #ifdef PA_LOG_API_CALLS |
| | 1940 | PaUtil_DebugPrint("Pa_GetStreamHostApiType returned:\n" ); |
| | 1941 | PaUtil_DebugPrint("\tPaError: %d ( %s )\n\n", result, Pa_GetErrorText( result ) ); |
| | 1942 | #endif |
| | 1943 | |
| | 1944 | return result; |
| | 1945 | } |
| | 1946 | |
| 1918 | 1947 | PaError Pa_GetSampleSize( PaSampleFormat format ) |
| 1919 | 1948 | { |
| 1920 | 1949 | int result; |
diff -wruN orig/audacity/lib-src/portaudio-v19/src/common/pa_stream.c audacity/lib-src/portaudio-v19/src/common/pa_stream.c
|
old
|
new
|
|
| 93 | 93 | streamRepresentation->streamInfo.inputLatency = 0.; |
| 94 | 94 | streamRepresentation->streamInfo.outputLatency = 0.; |
| 95 | 95 | streamRepresentation->streamInfo.sampleRate = 0.; |
| | 96 | |
| | 97 | streamRepresentation->hostApiType = 0; |
| 96 | 98 | } |
| 97 | 99 | |
| 98 | 100 | |
diff -wruN orig/audacity/lib-src/portaudio-v19/src/common/pa_stream.h audacity/lib-src/portaudio-v19/src/common/pa_stream.h
|
old
|
new
|
|
| 152 | 152 | PaStreamFinishedCallback *streamFinishedCallback; |
| 153 | 153 | void *userData; |
| 154 | 154 | PaStreamInfo streamInfo; |
| | 155 | PaHostApiTypeId hostApiType; |
| 155 | 156 | } PaUtilStreamRepresentation; |
| 156 | 157 | |
| 157 | 158 | |