Ticket #58: Ticket58.patch
| File Ticket58.patch, 26.8 KB (added by jf_menard, 12 months ago) |
|---|
-
include/portaudio.h
49 49 { 50 50 #endif /* __cplusplus */ 51 51 52 52 53 #if (defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER >= 1200))) /* MSC version 6 and above */ 54 /* PortAudio API Calling Convention */ 55 /* Required if static-linked with another calling convention */ 56 #define PA_API_CC __fastcall 57 /* Begin of PortAudio API struct packing alignment (to ensure consistent packing across projects) */ 58 #define PA_POP_PACK 59 #pragma pack(push, pa_PACK, 4) 60 #else 61 #define PA_API_CC 62 #endif 63 64 53 65 /** Retrieve the release number of the currently running PortAudio build, 54 66 eg 1900. 55 67 */ 56 int P a_GetVersion( void );68 int PA_API_CC Pa_GetVersion( void ); 57 69 58 70 59 71 /** Retrieve a textual description of the current PortAudio build, 60 72 eg "PortAudio V19-devel 13 October 2002". 61 73 */ 62 const char* P a_GetVersionText( void );74 const char* PA_API_CC Pa_GetVersionText( void ); 63 75 64 76 65 77 /** Error codes returned by PortAudio functions. … … 106 118 /** Translate the supplied PortAudio error code into a human readable 107 119 message. 108 120 */ 109 const char * Pa_GetErrorText( PaError errorCode );121 const char * PA_API_CC Pa_GetErrorText( PaError errorCode ); 110 122 111 123 112 124 /** Library initialization function - call this before using PortAudio. 113 This function initiali ses internal data structures and prepares underlying125 This function initializes internal data structures and prepares underlying 114 126 host APIs for use. With the exception of Pa_GetVersion(), Pa_GetVersionText(), 115 127 and Pa_GetErrorText(), this function MUST be called before using any other 116 128 PortAudio API functions. … … 128 140 129 141 @see Pa_Terminate 130 142 */ 131 PaError P a_Initialize( void );143 PaError PA_API_CC Pa_Initialize( void ); 132 144 133 145 134 146 /** Library termination function - call this when finished using PortAudio. 135 147 This function deallocates all resources allocated by PortAudio since it was 136 initializ ied by a call to Pa_Initialize(). In cases where Pa_Initialise() has148 initialized by a call to Pa_Initialize(). In cases where Pa_Initialise() has 137 149 been called multiple times, each call must be matched with a corresponding call 138 150 to Pa_Terminate(). The final matching call to Pa_Terminate() will automatically 139 151 close any PortAudio streams that are still open. … … 147 159 148 160 @see Pa_Initialize 149 161 */ 150 PaError P a_Terminate( void );162 PaError PA_API_CC Pa_Terminate( void ); 151 163 152 164 153 165 … … 195 207 196 208 @see PaHostApiIndex 197 209 */ 198 PaHostApiIndex P a_GetHostApiCount( void );210 PaHostApiIndex PA_API_CC Pa_GetHostApiCount( void ); 199 211 200 212 201 213 /** Retrieve the index of the default host API. The default host API will be … … 206 218 indicating the default host API index or, a PaErrorCode (which are always 207 219 negative) if PortAudio is not initialized or an error is encountered. 208 220 */ 209 PaHostApiIndex P a_GetDefaultHostApi( void );221 PaHostApiIndex PA_API_CC Pa_GetDefaultHostApi( void ); 210 222 211 223 212 224 /** Unchanging unique identifiers for each supported host API. This type … … 285 297 be manipulated or freed. The pointer is only guaranteed to be valid between 286 298 calls to Pa_Initialize() and Pa_Terminate(). 287 299 */ 288 const PaHostApiInfo * P a_GetHostApiInfo( PaHostApiIndex hostApi );300 const PaHostApiInfo * PA_API_CC Pa_GetHostApiInfo( PaHostApiIndex hostApi ); 289 301 290 302 291 303 /** Convert a static host API unique identifier, into a runtime … … 303 315 304 316 @see PaHostApiTypeId 305 317 */ 306 PaHostApiIndex P a_HostApiTypeIdToHostApiIndex( PaHostApiTypeId type );318 PaHostApiIndex PA_API_CC Pa_HostApiTypeIdToHostApiIndex( PaHostApiTypeId type ); 307 319 308 320 309 321 /** Convert a host-API-specific device index to standard PortAudio device index. … … 327 339 328 340 @see PaHostApiInfo 329 341 */ 330 PaDeviceIndex P a_HostApiDeviceIndexToDeviceIndex( PaHostApiIndex hostApi,342 PaDeviceIndex PA_API_CC Pa_HostApiDeviceIndexToDeviceIndex( PaHostApiIndex hostApi, 331 343 int hostApiDeviceIndex ); 332 344 333 345 … … 343 355 344 356 /** Return information about the last host error encountered. The error 345 357 information returned by Pa_GetLastHostErrorInfo() will never be modified 346 async ronously by errors occurring in other PortAudio owned threads358 asynchronously by errors occurring in other PortAudio owned threads 347 359 (such as the thread that manages the stream callback.) 348 360 349 361 This function is provided as a last resort, primarily to enhance debugging 350 362 by providing clients with access to all available error information. 351 363 352 @return A pointer to an immutable structure const aining information about364 @return A pointer to an immutable structure constraining information about 353 365 the host error. The values in this structure will only be valid if a 354 366 PortAudio function has previously returned the paUnanticipatedHostError 355 367 error code. 356 368 */ 357 const PaHostErrorInfo* P a_GetLastHostErrorInfo( void );369 const PaHostErrorInfo* PA_API_CC Pa_GetLastHostErrorInfo( void ); 358 370 359 371 360 372 … … 367 379 a PaErrorCode (which are always negative) if PortAudio is not initialized 368 380 or an error is encountered. 369 381 */ 370 PaDeviceIndex P a_GetDeviceCount( void );382 PaDeviceIndex PA_API_CC Pa_GetDeviceCount( void ); 371 383 372 384 373 385 /** Retrieve the index of the default input device. The result can be … … 376 388 @return The default input device index for the default host API, or paNoDevice 377 389 if no default input device is available or an error was encountered. 378 390 */ 379 PaDeviceIndex P a_GetDefaultInputDevice( void );391 PaDeviceIndex PA_API_CC Pa_GetDefaultInputDevice( void ); 380 392 381 393 382 394 /** Retrieve the index of the default output device. The result can be 383 395 used in the outputDevice parameter to Pa_OpenStream(). 384 396 385 @return The default output device index for the def ualt host API, or paNoDevice397 @return The default output device index for the default host API, or paNoDevice 386 398 if no default output device is available or an error was encountered. 387 399 388 400 @note … … 394 406 The user should first determine the available device ids by using 395 407 the supplied application "pa_devs". 396 408 */ 397 PaDeviceIndex P a_GetDefaultOutputDevice( void );409 PaDeviceIndex PA_API_CC Pa_GetDefaultOutputDevice( void ); 398 410 399 411 400 412 /** The type used to represent monotonic time in seconds that can be used 401 for sync ronisation. The type is used for the outTime argument to the413 for synchronization. The type is used for the outTime argument to the 402 414 PaStreamCallback and as the result of Pa_GetStreamTime(). 403 415 404 416 @see PaStreamCallback, Pa_GetStreamTime … … 474 486 475 487 @see PaDeviceInfo, PaDeviceIndex 476 488 */ 477 const PaDeviceInfo* P a_GetDeviceInfo( PaDeviceIndex device );489 const PaDeviceInfo* PA_API_CC Pa_GetDeviceInfo( PaDeviceIndex device ); 478 490 479 491 480 492 /** Parameters for one direction (input or output) of a stream. … … 506 518 configure their latency based on these parameters, otherwise they may 507 519 choose the closest viable latency instead. Unless the suggested latency 508 520 is greater than the absolute upper limit for the device implementations 509 should round the suggestedLatency up to the next practi al value - ie to510 provide an equal or higher latency than suggestedLatency wherever possib e.521 should round the suggestedLatency up to the next practical value - ie to 522 provide an equal or higher latency than suggestedLatency wherever possible. 511 523 Actual latency values for an open stream may be retrieved using the 512 524 inputLatency and outputLatency fields of the PaStreamInfo structure 513 525 returned by Pa_GetStreamInfo(). … … 550 562 551 563 @see paFormatIsSupported, PaStreamParameters 552 564 */ 553 PaError P a_IsFormatSupported( const PaStreamParameters *inputParameters,554 const PaStreamParameters *outputParameters,555 double sampleRate );565 PaError PA_API_CC Pa_IsFormatSupported( const PaStreamParameters *inputParameters, 566 const PaStreamParameters *outputParameters, 567 double sampleRate ); 556 568 557 569 558 570 … … 732 744 stream will finish as soon as possible. If paComplete is returned, the stream 733 745 will continue until all buffers generated by the callback have been played. 734 746 This may be useful in applications such as soundfile players where a specific 735 duration of output is required. However, it is not necessary to utili se this747 duration of output is required. However, it is not necessary to utilize this 736 748 mechanism as Pa_StopStream(), Pa_AbortStream() or Pa_CloseStream() can also 737 749 be used to stop the stream. The callback must always fill the entire output 738 750 buffer irrespective of its return value. 739 751 740 752 @see Pa_OpenStream, Pa_OpenDefaultStream 741 753 742 @note With the exception of Pa_GetStreamCpuLoad() it is not permiss able to call754 @note With the exception of Pa_GetStreamCpuLoad() it is not permissible to call 743 755 PortAudio API functions from within the stream callback. 744 756 */ 745 typedef int P aStreamCallback(757 typedef int PA_API_CC PaStreamCallback( 746 758 const void *input, void *output, 747 759 unsigned long frameCount, 748 760 const PaStreamCallbackTimeInfo* timeInfo, … … 769 781 @param framesPerBuffer The number of frames passed to the stream callback 770 782 function, or the preferred block granularity for a blocking read/write stream. 771 783 The special value paFramesPerBufferUnspecified (0) may be used to request that 772 the stream callback will rec ieve an optimal (and possibly varying) number of784 the stream callback will receive an optimal (and possibly varying) number of 773 785 frames based on host requirements and the requested latency settings. 774 786 Note: With some host APIs, the use of non-zero framesPerBuffer for a callback 775 787 stream may introduce an additional layer of buffering which could introduce … … 778 790 that a non-zero framesPerBuffer value only be used when your algorithm 779 791 requires a fixed number of frames per stream callback. 780 792 781 @param streamFlags Flags which modify the behavio ur of the streaming process.793 @param streamFlags Flags which modify the behavior of the streaming process. 782 794 This parameter may contain a combination of flags ORed together. Some flags may 783 795 only be relevant to certain buffer formats. 784 796 … … 804 816 @see PaStreamParameters, PaStreamCallback, Pa_ReadStream, Pa_WriteStream, 805 817 Pa_GetStreamReadAvailable, Pa_GetStreamWriteAvailable 806 818 */ 807 PaError P a_OpenStream( PaStream** stream,819 PaError PA_API_CC Pa_OpenStream( PaStream** stream, 808 820 const PaStreamParameters *inputParameters, 809 821 const PaStreamParameters *outputParameters, 810 822 double sampleRate, … … 827 839 828 840 @param numOutputChannels The number of channels of sound to be delivered to the 829 841 stream callback or passed to Pa_WriteStream. It can range from 1 to the value 830 of maxOutputChannels in the PaDeviceInfo record for the default output d vice.842 of maxOutputChannels in the PaDeviceInfo record for the default output device. 831 843 If 0 the stream is opened as an output-only stream. 832 844 833 845 @param sampleFormat The sample format of both the input and output buffers … … 844 856 845 857 @see Pa_OpenStream, PaStreamCallback 846 858 */ 847 PaError P a_OpenDefaultStream( PaStream** stream,859 PaError PA_API_CC Pa_OpenDefaultStream( PaStream** stream, 848 860 int numInputChannels, 849 861 int numOutputChannels, 850 862 PaSampleFormat sampleFormat, … … 857 869 /** Closes an audio stream. If the audio stream is active it 858 870 discards any pending buffers as if Pa_AbortStream() had been called. 859 871 */ 860 PaError P a_CloseStream( PaStream *stream );872 PaError PA_API_CC Pa_CloseStream( PaStream *stream ); 861 873 862 874 863 875 /** Functions of type PaStreamFinishedCallback are implemented by PortAudio … … 874 886 875 887 @see Pa_SetStreamFinishedCallback 876 888 */ 877 typedef void P aStreamFinishedCallback( void *userData );889 typedef void PA_API_CC PaStreamFinishedCallback( void *userData ); 878 890 879 891 880 892 /** Register a stream finished callback function which will be called when the … … 895 907 896 908 @see PaStreamFinishedCallback 897 909 */ 898 PaError P a_SetStreamFinishedCallback( PaStream *stream, PaStreamFinishedCallback* streamFinishedCallback );910 PaError PA_API_CC Pa_SetStreamFinishedCallback( PaStream *stream, PaStreamFinishedCallback* streamFinishedCallback ); 899 911 900 912 901 913 /** Commences audio processing. 902 914 */ 903 PaError P a_StartStream( PaStream *stream );915 PaError PA_API_CC Pa_StartStream( PaStream *stream ); 904 916 905 917 906 918 /** Terminates audio processing. It waits until all pending 907 919 audio buffers have been played before it returns. 908 920 */ 909 PaError P a_StopStream( PaStream *stream );921 PaError PA_API_CC Pa_StopStream( PaStream *stream ); 910 922 911 923 912 924 /** Terminates audio processing immediately without waiting for pending 913 925 buffers to complete. 914 926 */ 915 PaError P a_AbortStream( PaStream *stream );927 PaError PA_API_CC Pa_AbortStream( PaStream *stream ); 916 928 917 929 918 930 /** Determine whether the stream is stopped. … … 927 939 928 940 @see Pa_StopStream, Pa_AbortStream, Pa_IsStreamActive 929 941 */ 930 PaError P a_IsStreamStopped( PaStream *stream );942 PaError PA_API_CC Pa_IsStreamStopped( PaStream *stream ); 931 943 932 944 933 945 /** Determine whether the stream is active. … … 943 955 944 956 @see Pa_StopStream, Pa_AbortStream, Pa_IsStreamStopped 945 957 */ 946 PaError P a_IsStreamActive( PaStream *stream );958 PaError PA_API_CC Pa_IsStreamActive( PaStream *stream ); 947 959 948 960 949 961 … … 997 1009 998 1010 @see PaStreamInfo 999 1011 */ 1000 const PaStreamInfo* P a_GetStreamInfo( PaStream *stream );1012 const PaStreamInfo* PA_API_CC Pa_GetStreamInfo( PaStream *stream ); 1001 1013 1002 1014 1003 1015 /** Determine the current time for the stream according to the same clock used 1004 to generate buffer timestamps. This time may be used for sync ronising other1016 to generate buffer timestamps. This time may be used for synchronizing other 1005 1017 events to the audio stream, for example synchronizing audio to MIDI. 1006 1018 1007 1019 @return The stream's current time in seconds, or 0 if an error occurred. 1008 1020 1009 1021 @see PaTime, PaStreamCallback 1010 1022 */ 1011 PaTime P a_GetStreamTime( PaStream *stream );1023 PaTime PA_API_CC Pa_GetStreamTime( PaStream *stream ); 1012 1024 1013 1025 1014 1026 /** Retrieve CPU usage information for the specified stream. … … 1025 1037 to maintain real-time operation. A value of 0.5 would imply that PortAudio and 1026 1038 the stream callback was consuming roughly 50% of the available CPU time. The 1027 1039 return value may exceed 1.0. A value of 0.0 will always be returned for a 1028 blocking read/write stream, or if an error occur rs.1040 blocking read/write stream, or if an error occurs. 1029 1041 */ 1030 double P a_GetStreamCpuLoad( PaStream* stream );1042 double PA_API_CC Pa_GetStreamCpuLoad( PaStream* stream ); 1031 1043 1032 1044 1033 1045 /** Read samples from an input stream. The function doesn't return until … … 1051 1063 @return On success PaNoError will be returned, or PaInputOverflowed if input 1052 1064 data was discarded by PortAudio after the previous call and before this call. 1053 1065 */ 1054 PaError P a_ReadStream( PaStream* stream,1066 PaError PA_API_CC Pa_ReadStream( PaStream* stream, 1055 1067 void *buffer, 1056 1068 unsigned long frames ); 1057 1069 … … 1078 1090 additional output data was inserted after the previous call and before this 1079 1091 call. 1080 1092 */ 1081 PaError P a_WriteStream( PaStream* stream,1093 PaError PA_API_CC Pa_WriteStream( PaStream* stream, 1082 1094 const void *buffer, 1083 1095 unsigned long frames ); 1084 1096 … … 1091 1103 PaErrorCode (which are always negative) if PortAudio is not initialized or an 1092 1104 error is encountered. 1093 1105 */ 1094 signed long P a_GetStreamReadAvailable( PaStream* stream );1106 signed long PA_API_CC Pa_GetStreamReadAvailable( PaStream* stream ); 1095 1107 1096 1108 1097 1109 /** Retrieve the number of frames that can be written to the stream without … … 1102 1114 PaErrorCode (which are always negative) if PortAudio is not initialized or an 1103 1115 error is encountered. 1104 1116 */ 1105 signed long P a_GetStreamWriteAvailable( PaStream* stream );1117 signed long PA_API_CC Pa_GetStreamWriteAvailable( PaStream* stream ); 1106 1118 1107 1119 1108 1120 /* Miscellaneous utilities */ … … 1113 1125 @return The size in bytes of a single sample in the specified format, 1114 1126 or paSampleFormatNotSupported if the format is not supported. 1115 1127 */ 1116 PaError P a_GetSampleSize( PaSampleFormat format );1128 PaError PA_API_CC Pa_GetSampleSize( PaSampleFormat format ); 1117 1129 1118 1130 1119 1131 /** Put the caller to sleep for at least 'msec' milliseconds. This function is … … 1123 1135 The function may sleep longer than requested so don't rely on this for accurate 1124 1136 musical timing. 1125 1137 */ 1126 void P a_Sleep( long msec );1138 void PA_API_CC Pa_Sleep( long msec ); 1127 1139 1128 1140 1129 1141 1142 #ifdef PA_POP_PACK 1143 /* End of PortAudio API struct packing alignment */ 1144 #pragma pack(pop, pa_PACK) 1145 #endif 1146 1130 1147 #ifdef __cplusplus 1131 1148 } 1132 1149 #endif /* __cplusplus */ -
src/common/pa_debugprint.c
64 64 static PaUtilLogCallback userCB=0; 65 65 66 66 67 void P aUtil_SetDebugPrintFunction(PaUtilLogCallback cb)67 void PA_API_CC PaUtil_SetDebugPrintFunction(PaUtilLogCallback cb) 68 68 { 69 69 userCB = cb; 70 70 } -
src/common/pa_debugprint.h
39 39 @ingroup common_src 40 40 */ 41 41 42 #include "portaudio.h" /* Required for PA_API_CC */ 42 43 43 44 #ifdef __cplusplus 44 45 extern "C" … … 134 135 #endif 135 136 136 137 137 typedef void ( *PaUtilLogCallback ) (const char *log);138 typedef void (PA_API_CC *PaUtilLogCallback ) (const char *log); 138 139 139 140 /** 140 141 Install user provided log function 141 142 */ 142 void P aUtil_SetDebugPrintFunction(PaUtilLogCallback cb);143 void PA_API_CC PaUtil_SetDebugPrintFunction(PaUtilLogCallback cb); 143 144 144 145 145 146 -
src/common/pa_front.c
92 92 93 93 94 94 95 int P a_GetVersion( void )95 int PA_API_CC Pa_GetVersion( void ) 96 96 { 97 97 return PA_VERSION_; 98 98 } 99 99 100 100 101 const char* P a_GetVersionText( void )101 const char* PA_API_CC Pa_GetVersionText( void ) 102 102 { 103 103 return PA_VERSION_TEXT_; 104 104 } … … 305 305 } 306 306 307 307 308 PaError P a_Initialize( void )308 PaError PA_API_CC Pa_Initialize( void ) 309 309 { 310 310 PaError result; 311 311 … … 335 335 } 336 336 337 337 338 PaError P a_Terminate( void )338 PaError PA_API_CC Pa_Terminate( void ) 339 339 { 340 340 PaError result; 341 341 … … 364 364 } 365 365 366 366 367 const PaHostErrorInfo* P a_GetLastHostErrorInfo( void )367 const PaHostErrorInfo* PA_API_CC Pa_GetLastHostErrorInfo( void ) 368 368 { 369 369 return &lastHostErrorInfo_; 370 370 } 371 371 372 372 373 const char * Pa_GetErrorText( PaError errorCode )373 const char * PA_API_CC Pa_GetErrorText( PaError errorCode ) 374 374 { 375 375 const char *result; 376 376 … … 416 416 } 417 417 418 418 419 PaHostApiIndex P a_HostApiTypeIdToHostApiIndex( PaHostApiTypeId type )419 PaHostApiIndex PA_API_CC Pa_HostApiTypeIdToHostApiIndex( PaHostApiTypeId type ) 420 420 { 421 421 PaHostApiIndex result; 422 422 int i; … … 499 499 } 500 500 501 501 502 PaHostApiIndex P a_GetHostApiCount( void )502 PaHostApiIndex PA_API_CC Pa_GetHostApiCount( void ) 503 503 { 504 504 int result; 505 505 … … 520 520 } 521 521 522 522 523 PaHostApiIndex P a_GetDefaultHostApi( void )523 PaHostApiIndex PA_API_CC Pa_GetDefaultHostApi( void ) 524 524 { 525 525 int result; 526 526 … … 549 549 } 550 550 551 551 552 const PaHostApiInfo* P a_GetHostApiInfo( PaHostApiIndex hostApi )552 const PaHostApiInfo* PA_API_CC Pa_GetHostApiInfo( PaHostApiIndex hostApi ) 553 553 { 554 554 PaHostApiInfo *info; 555 555 … … 590 590 } 591 591 592 592 593 PaDeviceIndex P a_HostApiDeviceIndexToDeviceIndex( PaHostApiIndex hostApi, int hostApiDeviceIndex )593 PaDeviceIndex PA_API_CC Pa_HostApiDeviceIndexToDeviceIndex( PaHostApiIndex hostApi, int hostApiDeviceIndex ) 594 594 { 595 595 PaDeviceIndex result; 596 596 … … 628 628 } 629 629 630 630 631 PaDeviceIndex P a_GetDeviceCount( void )631 PaDeviceIndex PA_API_CC Pa_GetDeviceCount( void ) 632 632 { 633 633 PaDeviceIndex result; 634 634 … … 649 649 } 650 650 651 651 652 PaDeviceIndex P a_GetDefaultInputDevice( void )652 PaDeviceIndex PA_API_CC Pa_GetDefaultInputDevice( void ) 653 653 { 654 654 PaHostApiIndex hostApi; 655 655 PaDeviceIndex result; … … 672 672 } 673 673 674 674 675 PaDeviceIndex P a_GetDefaultOutputDevice( void )675 PaDeviceIndex PA_API_CC Pa_GetDefaultOutputDevice( void ) 676 676 { 677 677 PaHostApiIndex hostApi; 678 678 PaDeviceIndex result; … … 695 695 } 696 696 697 697 698 const PaDeviceInfo* P a_GetDeviceInfo( PaDeviceIndex device )698 const PaDeviceInfo* PA_API_CC Pa_GetDeviceInfo( PaDeviceIndex device ) 699 699 { 700 700 int hostSpecificDeviceIndex; 701 701 int hostApiIndex = FindHostApi( device, &hostSpecificDeviceIndex ); … … 980 980 } 981 981 982 982 983 PaError P a_IsFormatSupported( const PaStreamParameters *inputParameters,983 PaError PA_API_CC Pa_IsFormatSupported( const PaStreamParameters *inputParameters, 984 984 const PaStreamParameters *outputParameters, 985 985 double sampleRate ) 986 986 { … … 1084 1084 } 1085 1085 1086 1086 1087 PaError P a_OpenStream( PaStream** stream,1087 PaError PA_API_CC Pa_OpenStream( PaStream** stream, 1088 1088 const PaStreamParameters *inputParameters, 1089 1089 const PaStreamParameters *outputParameters, 1090 1090 double sampleRate, … … 1218 1218 } 1219 1219 1220 1220 1221 PaError P a_OpenDefaultStream( PaStream** stream,1221 PaError PA_API_CC Pa_OpenDefaultStream( PaStream** stream, 1222 1222 int inputChannelCount, 1223 1223 int outputChannelCount, 1224 1224 PaSampleFormat sampleFormat, … … 1314 1314 } 1315 1315 1316 1316 1317 PaError P a_CloseStream( PaStream* stream )1317 PaError PA_API_CC Pa_CloseStream( PaStream* stream ) 1318 1318 { 1319 1319 PaUtilStreamInterface *interface; 1320 1320 PaError result = PaUtil_ValidateStreamPointer( stream ); … … 1348 1348 } 1349 1349 1350 1350 1351 PaError P a_SetStreamFinishedCallback( PaStream *stream, PaStreamFinishedCallback* streamFinishedCallback )1351 PaError PA_API_CC Pa_SetStreamFinishedCallback( PaStream *stream, PaStreamFinishedCallback* streamFinishedCallback ) 1352 1352 { 1353 1353 PaError result = PaUtil_ValidateStreamPointer( stream ); 1354 1354 … … 1377 1377 } 1378 1378 1379 1379 1380 PaError P a_StartStream( PaStream *stream )1380 PaError PA_API_CC Pa_StartStream( PaStream *stream ) 1381 1381 { 1382 1382 PaError result = PaUtil_ValidateStreamPointer( stream ); 1383 1383 … … 1403 1403 } 1404 1404 1405 1405 1406 PaError P a_StopStream( PaStream *stream )1406 PaError PA_API_CC Pa_StopStream( PaStream *stream ) 1407 1407 { 1408 1408 PaError result = PaUtil_ValidateStreamPointer( stream ); 1409 1409 … … 1429 1429 } 1430 1430 1431 1431 1432 PaError P a_AbortStream( PaStream *stream )
