Changeset 1467
- Timestamp:
- 03/04/10 06:02:06 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
portaudio/trunk/src/hostapi/wasapi/pa_win_wasapi.c
r1466 r1467 835 835 PaError PaWasapi_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex hostApiIndex ) 836 836 { 837 PaError result = pa UnanticipatedHostError;837 PaError result = paNoError; 838 838 PaWasapiHostApiRepresentation *paWasapi; 839 839 PaDeviceInfo *deviceInfoArray; … … 844 844 if (!SetupAVRT()) 845 845 { 846 PRINT(("W indows WASAPI: No AVRT! (not VISTA?)"));847 return pa HostApiNotFound;846 PRINT(("WASAPI: No AVRT! (not VISTA?)")); 847 return paNoError; 848 848 } 849 849 850 850 CoInitialize(NULL); 851 851 852 paWasapi = (PaWasapiHostApiRepresentation *)PaUtil_AllocateMemory( sizeof(PaWasapiHostApiRepresentation) );852 paWasapi = (PaWasapiHostApiRepresentation *)PaUtil_AllocateMemory( sizeof(PaWasapiHostApiRepresentation) ); 853 853 if (paWasapi == NULL) 854 854 { … … 864 864 } 865 865 866 *hostApi = &paWasapi->inheritedHostApiRep;866 *hostApi = &paWasapi->inheritedHostApiRep; 867 867 (*hostApi)->info.structVersion = 1; 868 868 (*hostApi)->info.type = paWASAPI; … … 1102 1102 break; 1103 1103 default: 1104 PRINT(("WASAPI device:%d bad Data FLow! \n",i));1104 PRINT(("WASAPI: device %d bad Data FLow! \n",i)); 1105 1105 goto error; 1106 1106 break; … … 1135 1135 SAFE_RELEASE(pEndPoints); 1136 1136 1137 return (result = paNoError);1137 return paNoError; 1138 1138 1139 1139 error:
Note: See TracChangeset
for help on using the changeset viewer.
