| 81 | | /* the following would operate directly on streams */ |
| 82 | | PaTime Pa_GetStreamInputLatency( PaStream *stream ); |
| 83 | | PaTime Pa_GetStreamOutputLatency( PaStream *stream ); |
| | 81 | /** A structure containing unchanging information about an open stream. |
| | 82 | @see Pa_GetStreamInfo |
| | 83 | */ |
| | 84 | |
| | 85 | typedef struct PaStreamInfo |
| | 86 | { |
| | 87 | /** this is struct version 1 */ |
| | 88 | int structVersion; |
| | 89 | |
| | 90 | /** The input latency of the stream in seconds. This value provides the most |
| | 91 | accurate estimate of input latency available to the implementation. It may |
| | 92 | differ significantly from the suggestedLatency value passed to Pa_OpenStream(). |
| | 93 | The value of this field will be zero (0.) for output-only streams. |
| | 94 | @see PaTime |
| | 95 | */ |
| | 96 | PaTime inputLatency; |
| | 97 | |
| | 98 | /** The output latency of the stream in seconds. This value provides the most |
| | 99 | accurate estimate of output latency available to the implementation. It may |
| | 100 | differ significantly from the suggestedLatency value passed to Pa_OpenStream(). |
| | 101 | The value of this field will be zero (0.) for input-only streams. |
| | 102 | @see PaTime |
| | 103 | */ |
| | 104 | PaTime outputLatency; |
| | 105 | |
| | 106 | ... (other fields) ... |
| | 107 | |
| | 108 | } PaStreamInfo; |
| | 109 | |
| | 110 | |
| | 111 | /** Retrieve a pointer to a PaStreamInfo structure containing information |
| | 112 | about the specified stream. |
| | 113 | @return A pointer to an immutable PaStreamInfo structure. If the stream |
| | 114 | parameter invalid, or an error is encountered, the function returns NULL. |
| | 115 | |
| | 116 | @param stream A pointer to an open stream previously created with Pa_OpenStream. |
| | 117 | |
| | 118 | @note PortAudio manages the memory referenced by the returned pointer, |
| | 119 | the client must not manipulate or free the memory. The pointer is only |
| | 120 | guaranteed to be valid until the specified stream is closed. |
| | 121 | |
| | 122 | @see PaStreamInfo |
| | 123 | */ |
| | 124 | const PaStreamInfo* Pa_GetStreamInfo( PaStream *stream ); |