Ticket #18: common.diff

File common.diff, 3.3 KB (added by leland_lucius, 2 years ago)
  • audacity/lib-src/portaudio-v19/include/portaudio.h

    diff -wruN orig/audacity/lib-src/portaudio-v19/include/portaudio.h audacity/lib-src/portaudio-v19/include/portaudio.h
    old new  
    11051105signed long Pa_GetStreamWriteAvailable( PaStream* stream ); 
    11061106 
    11071107 
     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*/ 
     1114PaHostApiTypeId Pa_GetStreamHostApiType( PaStream* stream ); 
     1115 
     1116 
    11081117/* Miscellaneous utilities */ 
    11091118 
    11101119 
  • audacity/lib-src/portaudio-v19/src/common/pa_front.c

    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  
    13271327                                  hostApiInputParametersPtr, hostApiOutputParametersPtr, 
    13281328                                  sampleRate, framesPerBuffer, streamFlags, streamCallback, userData ); 
    13291329 
    1330     if( result == paNoError ) 
     1330    if( result == paNoError ) { 
    13311331        AddOpenStream( *stream ); 
     1332        PA_STREAM_REP(*stream)->hostApiType = hostApi->info.type; 
     1333    } 
    13321334 
    13331335 
    13341336#ifdef PA_LOG_API_CALLS 
     
    19151917} 
    19161918 
    19171919 
     1920PaHostApiTypeId 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 
    19181947PaError Pa_GetSampleSize( PaSampleFormat format ) 
    19191948{ 
    19201949    int result; 
  • audacity/lib-src/portaudio-v19/src/common/pa_stream.c

    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  
    9393    streamRepresentation->streamInfo.inputLatency = 0.; 
    9494    streamRepresentation->streamInfo.outputLatency = 0.; 
    9595    streamRepresentation->streamInfo.sampleRate = 0.; 
     96 
     97    streamRepresentation->hostApiType = 0; 
    9698} 
    9799 
    98100 
  • audacity/lib-src/portaudio-v19/src/common/pa_stream.h

    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  
    152152    PaStreamFinishedCallback *streamFinishedCallback; 
    153153    void *userData; 
    154154    PaStreamInfo streamInfo; 
     155    PaHostApiTypeId hostApiType; 
    155156} PaUtilStreamRepresentation; 
    156157 
    157158