Ticket #2265: audiooutputbase.h.diff
File audiooutputbase.h.diff, 1.6 KB (added by , 19 years ago) |
---|
-
audiooutputbase.h
128 128 bool set_initial_vol; 129 129 bool buffer_output_data_for_use; // used by AudioOutputNULL 130 130 131 // timestretch 132 soundtouch::SoundTouch * pSoundStretch; 133 134 int audiotime; // timecode of audio leaving the soundcard (same units as 135 // timecodes) ... 136 137 int audbuf_timecode; /* timecode of audio most recently placed into 138 buffer */ 139 131 140 private: 132 141 // resampler 133 142 bool need_resampler; … … 137 146 float src_out[AUDIO_SRC_OUT_SIZE]; 138 147 short tmp_buff[AUDIO_TMP_BUF_SIZE]; 139 148 140 // timestretch141 soundtouch::SoundTouch * pSoundStretch;142 143 149 bool blocking; // do AddSamples calls block? 144 150 145 151 int lastaudiolen; … … 155 161 156 162 pthread_mutex_t avsync_lock; /* must hold avsync_lock to read or write 157 163 'audiotime' and 'audiotime_updated' */ 158 int audiotime; // timecode of audio leaving the soundcard (same units as159 // timecodes) ...160 164 struct timeval audiotime_updated; // ... which was last updated at this time 161 165 162 166 /* Audio circular buffer */ 163 167 unsigned char audiobuffer[AUDBUFSIZE]; /* buffer */ 164 168 int raud, waud; /* read and write positions */ 165 int audbuf_timecode; /* timecode of audio most recently placed into166 buffer */167 169 168 170 int numlowbuffer; 169 171