Changeset 44 for pa_proposals/trunk

Show
Ignore:
Timestamp:
10/20/02 22:35:48 (6 years ago)
Author:
rossbencina
Message:

- added defaultSampleRate to PaDeviceInfo?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pa_proposals/trunk/002-ImproveDeviceFormatsQueryInterface.html

    r28 r44  
    5050    unsigned int maxInputChannels; 
    5151    unsigned int maxOutputChannels;  
     52 
     53    double defaultSampleRate; 
    5254} PaDeviceInfo; 
    5355</PRE> 
     
    5557<P> 
    5658The following fields have been removed from the above structure, relative to V18:  
    57 numSampleRates, sampleRates, nativeSampleFormats. Sample rate information will only 
    58 be available by polling PortAudio using the Pa_IsFormatSupported() function defined below. 
     59numSampleRates, sampleRates, nativeSampleFormats.  
     60</P> 
     61 
     62<P> 
     63Complete sample rate information will only be available by polling PortAudio using the Pa_IsFormatSupported() function defined below. The defaultSampleRate field is provided so that simple clients have access a known working sample rate, and so that host APIs that only support one possibly non-standard sample rate can expose it to clients. Implementations should use the following heuristics to determine which value to provide for defaultSampleRate when multiple rates are available: 
     64</P> 
     65 
     66<UL> 
     67<LI>The sample rate must be supported by the device.</LI> 
     68<LI>If more that one sample rate is supported, the one that is known to be supported with the most combinations of channel counts and duplex should be returned.</LI> 
     69<LI>Where possible, the sample rate should be at least CD quality (44.1k), if both 44.1k and higher rates are available, 44.1k should be used.</LI> 
     70</UL> 
     71 
     72<P> 
    5973The concept of "native sample formats" - those that are directly supported by the underlying 
    6074host API - will be removed from the PortAudio specification as PortAudio's conversion