mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 11:20:42 +02:00
more cleanup
This commit is contained in:
parent
82d9c50dc5
commit
040df97be2
2 changed files with 6 additions and 13 deletions
|
@ -665,11 +665,6 @@ void Audio::addReceivedAudioToBuffer(const QByteArray& audioByteArray) {
|
|||
_lastReceiveTime = currentReceiveTime;
|
||||
}
|
||||
|
||||
unsigned int Audio::timeValToSampleTick(const quint64 time, int sampleRate) {
|
||||
unsigned int sample = (unsigned int)(time / 1000000 * sampleRate);
|
||||
return sample;
|
||||
}
|
||||
|
||||
void Audio::addSpatialAudioToBuffer(unsigned int sampleTime, const QByteArray& spatialAudio, unsigned int numSamples) {
|
||||
// Calculate the number of remaining samples available. The source spatial audio buffer will get
|
||||
// clipped if there are insufficient samples available in the accumulation buffer.
|
||||
|
|
|
@ -167,16 +167,14 @@ private:
|
|||
GLuint _boxTextureId;
|
||||
QRect _iconBounds;
|
||||
|
||||
// Audio callback in class context.
|
||||
/// Audio callback in class context.
|
||||
inline void performIO(int16_t* inputLeft, int16_t* outputLeft, int16_t* outputRight);
|
||||
|
||||
// Process received audio by spatial attenuation geometric response
|
||||
bool _processSpatialAudio;
|
||||
unsigned int _spatialAudioStart; /// Start of spatial audio interval (in sample rate time base)
|
||||
unsigned int _spatialAudioFinish; /// End of spatial audio interval (in sample rate time base)
|
||||
AudioRingBuffer _spatialAudioRingBuffer; /// Spatially processed audio
|
||||
|
||||
unsigned int timeValToSampleTick(const quint64 time, int sampleRate);
|
||||
|
||||
bool _processSpatialAudio; /// Process received audio by spatial audio hooks
|
||||
unsigned int _spatialAudioStart; /// Start of spatial audio interval (in sample rate time base)
|
||||
unsigned int _spatialAudioFinish; /// End of spatial audio interval (in sample rate time base)
|
||||
AudioRingBuffer _spatialAudioRingBuffer; /// Spatially processed audio
|
||||
|
||||
// Process procedural audio by
|
||||
// 1. Echo to the local procedural output device
|
||||
|
|
Loading…
Reference in a new issue