Changeset 58 for pa_proposals/trunk

Show
Ignore:
Timestamp:
10/26/02 02:19:29 (6 years ago)
Author:
rossbencina
Message:

changed numberOfChannels to channelCount

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pa_proposals/trunk/016-UseStructsForOpenStreamParameters.html

    r54 r58  
    3939typedef struct PaStreamParameters{ 
    4040     PaDeviceIndex device; 
    41      int numberOfChannels; 
     41     int channelCount; 
    4242     PaSampleFormat sampleFormat; 
    4343     PaTime suggestedLatency; 
     
    9898PaStreamParameters inputParameters; 
    9999inputParameters.device = Pa_GetDefaultInputDevice(); 
    100 inputParameters.numberOfChannels = 2; 
     100inputParameters.channelCount = 2; 
    101101inputParameters.sampleFormat = paFloat32; 
    102102inputParameters.suggestedlatency = Pa_GetDefaultLowInputLatency( inputParameters.device ); 
     
    114114 
    115115<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 numberOfChannels 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. 
     116Originally 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. 
    117117</P> 
    118118