Changeset 58
- Timestamp:
- 10/26/02 02:19:29 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pa_proposals/trunk/016-UseStructsForOpenStreamParameters.html
r54 r58 39 39 typedef struct PaStreamParameters{ 40 40 PaDeviceIndex device; 41 int numberOfChannels;41 int channelCount; 42 42 PaSampleFormat sampleFormat; 43 43 PaTime suggestedLatency; … … 98 98 PaStreamParameters inputParameters; 99 99 inputParameters.device = Pa_GetDefaultInputDevice(); 100 inputParameters. numberOfChannels= 2;100 inputParameters.channelCount = 2; 101 101 inputParameters.sampleFormat = paFloat32; 102 102 inputParameters.suggestedlatency = Pa_GetDefaultLowInputLatency( inputParameters.device ); … … 114 114 115 115 <P> 116 Originally the numberOfChannels field was called numChannels in line with the old Pa_OpenStream parameters of the same name. However it was discovered that this field was the only one in the whole api that used an abbreviation, so it was changed to numberOfChannelsfor consistency. Other abbreviations currently used are Info and Ptr, neither of these are field names. Further more, Info is a very common abbreviation (over 113 million appearances in google). There is an enumeration called PaErrorNum, but we are considering eliding this with PaError or renaming it PaErrorCode.116 Originally the channelCount field was called numChannels in line with the old Pa_OpenStream parameters of the same name. However it was discovered that this field was the only one in the whole api that used an abbreviation, so it was changed to channelCount for consistency. Other abbreviations currently used are Info and Ptr, neither of these are field names. Further more, Info is a very common abbreviation (over 113 million appearances in google). There is an enumeration called PaErrorNum, but we are considering eliding this with PaError or renaming it PaErrorCode. 117 117 </P> 118 118
