mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 20:56:41 +02:00
Testing audio shutdown before menu destruction.
This commit is contained in:
parent
fa53e5dc39
commit
54116cbc85
4 changed files with 8 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);
|
||||
|
|
|
@ -416,6 +416,8 @@ Menu::Menu() :
|
|||
Menu::~Menu() {
|
||||
bandwidthDetailsClosed();
|
||||
voxelStatsDetailsClosed();
|
||||
|
||||
qDebug() << "menu deleted\n";
|
||||
}
|
||||
|
||||
void Menu::loadSettings(QSettings* settings) {
|
||||
|
|
Loading…
Reference in a new issue