mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 01:23:57 +02:00
Merge branch 'master' of https://github.com/worklist/hifi into shifty
This commit is contained in:
commit
a60be83fc7
3 changed files with 6 additions and 3 deletions
|
@ -238,8 +238,10 @@ Application::~Application() {
|
|||
|
||||
_sharedVoxelSystem.changeTree(new VoxelTree);
|
||||
|
||||
delete Menu::getInstance();
|
||||
_audio.shutdown();
|
||||
|
||||
delete Menu::getInstance();
|
||||
|
||||
delete _oculusProgram;
|
||||
delete _settings;
|
||||
delete _networkAccessManager;
|
||||
|
|
|
@ -448,7 +448,7 @@ Audio::Audio(Oscilloscope* scope, int16_t initialJitterBufferSamples) :
|
|||
gettimeofday(&_lastReceiveTime, NULL);
|
||||
}
|
||||
|
||||
Audio::~Audio() {
|
||||
void Audio::shutdown() {
|
||||
if (_stream) {
|
||||
outputPortAudioError(Pa_CloseStream(_stream));
|
||||
outputPortAudioError(Pa_Terminate());
|
||||
|
|
|
@ -33,7 +33,8 @@ class Audio : public QObject {
|
|||
public:
|
||||
// initializes audio I/O
|
||||
Audio(Oscilloscope* scope, int16_t initialJitterBufferSamples);
|
||||
~Audio();
|
||||
|
||||
void shutdown();
|
||||
|
||||
void reset();
|
||||
void render(int screenWidth, int screenHeight);
|
||||
|
|
Loading…
Reference in a new issue