mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 06:53:01 +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);
|
_sharedVoxelSystem.changeTree(new VoxelTree);
|
||||||
|
|
||||||
delete Menu::getInstance();
|
_audio.shutdown();
|
||||||
|
|
||||||
|
delete Menu::getInstance();
|
||||||
|
|
||||||
delete _oculusProgram;
|
delete _oculusProgram;
|
||||||
delete _settings;
|
delete _settings;
|
||||||
delete _networkAccessManager;
|
delete _networkAccessManager;
|
||||||
|
|
|
@ -448,7 +448,7 @@ Audio::Audio(Oscilloscope* scope, int16_t initialJitterBufferSamples) :
|
||||||
gettimeofday(&_lastReceiveTime, NULL);
|
gettimeofday(&_lastReceiveTime, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Audio::~Audio() {
|
void Audio::shutdown() {
|
||||||
if (_stream) {
|
if (_stream) {
|
||||||
outputPortAudioError(Pa_CloseStream(_stream));
|
outputPortAudioError(Pa_CloseStream(_stream));
|
||||||
outputPortAudioError(Pa_Terminate());
|
outputPortAudioError(Pa_Terminate());
|
||||||
|
|
|
@ -33,7 +33,8 @@ class Audio : public QObject {
|
||||||
public:
|
public:
|
||||||
// initializes audio I/O
|
// initializes audio I/O
|
||||||
Audio(Oscilloscope* scope, int16_t initialJitterBufferSamples);
|
Audio(Oscilloscope* scope, int16_t initialJitterBufferSamples);
|
||||||
~Audio();
|
|
||||||
|
void shutdown();
|
||||||
|
|
||||||
void reset();
|
void reset();
|
||||||
void render(int screenWidth, int screenHeight);
|
void render(int screenWidth, int screenHeight);
|
||||||
|
|
|
@ -416,6 +416,8 @@ Menu::Menu() :
|
||||||
Menu::~Menu() {
|
Menu::~Menu() {
|
||||||
bandwidthDetailsClosed();
|
bandwidthDetailsClosed();
|
||||||
voxelStatsDetailsClosed();
|
voxelStatsDetailsClosed();
|
||||||
|
|
||||||
|
qDebug() << "menu deleted\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void Menu::loadSettings(QSettings* settings) {
|
void Menu::loadSettings(QSettings* settings) {
|
||||||
|
|
Loading…
Reference in a new issue