History

renamed ringbuffer variables to audiostream

wangyix committed 12 years ago

Commit 6fc5c741 parent 32dbc6c19 files · +237 −225Browse files

Showing the changes to interface/src/Application.cpp (1 of 19 files). Show all

Unified · Split

interface/src/Application.cpp+3−7
@@ -103,10 +103,6 @@ const int IDLE_SIMULATE_MSECS = 16; // How often should call simul · 102 unmodified lines
103103 // in the idle loop? (60 FPS is default)
104104 static QTimer* idleTimer = NULL;
105105
106−const int STARTUP_JITTER_SAMPLES = NETWORK_BUFFER_LENGTH_SAMPLES_PER_CHANNEL / 2;
107− // Startup optimistically with small jitter buffer that
108− // will start playback on the second received audio packet.
109−
110106 const QString CHECK_VERSION_URL = "https://highfidelity.io/latestVersion.xml";
111107 const QString SKIP_FILENAME = QStandardPaths::writableLocation(QStandardPaths::DataLocation) + "/hifi.skipversion";
112108
@@ -162,7 +158,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 49 unmodified lines
162158 _touchAvgY(0.0f),
163159 _isTouchPressed(false),
164160 _mousePressed(false),
165− _audio(STARTUP_JITTER_SAMPLES),
161+ _audio(),
166162 _enableProcessVoxelsThread(true),
167163 _octreeProcessor(),
168164 _voxelHideShowThread(&_voxels),
@@ -1712,8 +1708,8 @@ void Application::init() { · 1543 unmodified lines
17121708 _lastTimeUpdated.start();
17131709
17141710 Menu::getInstance()->loadSettings();
1715− if (Menu::getInstance()->getAudioJitterBufferSamples() != 0) {
1716− _audio.setJitterBufferSamples(Menu::getInstance()->getAudioJitterBufferSamples());
1711+ if (Menu::getInstance()->getAudioJitterBufferFrames() != 0) {
1712+ _audio.overrideDesiredJitterBufferFramesTo(Menu::getInstance()->getAudioJitterBufferFrames());
17171713 }
17181714 qDebug("Loaded settings");
17191715

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t