diff options
author | Chris Warren-Smith | 2011-08-14 20:12:03 +1000 |
---|---|---|
committer | Chris Warren-Smith | 2011-08-21 16:39:00 +1000 |
commit | c33bb63cbd9db867511c8bdb91afaa3c33b5b274 (patch) | |
tree | 15130b71ced7090fe5b01cde83303bb147524ec3 /backends/platform/bada | |
parent | 2e77b97b1984e32690ab3864af931553d5272767 (diff) | |
download | scummvm-rg350-c33bb63cbd9db867511c8bdb91afaa3c33b5b274.tar.gz scummvm-rg350-c33bb63cbd9db867511c8bdb91afaa3c33b5b274.tar.bz2 scummvm-rg350-c33bb63cbd9db867511c8bdb91afaa3c33b5b274.zip |
BADA: Increased audio thread priority to avoid sound skipping in some games
Diffstat (limited to 'backends/platform/bada')
-rwxr-xr-x | backends/platform/bada/audio.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/backends/platform/bada/audio.cpp b/backends/platform/bada/audio.cpp index 8f4252737f..48874d69bc 100755 --- a/backends/platform/bada/audio.cpp +++ b/backends/platform/bada/audio.cpp @@ -51,7 +51,9 @@ AudioThread::AudioThread() : Audio::MixerImpl *AudioThread::Construct(OSystem *system) {
logEntered();
- if (IsFailed(Thread::Construct(THREAD_TYPE_EVENT_DRIVEN))) {
+ if (IsFailed(Thread::Construct(THREAD_TYPE_EVENT_DRIVEN,
+ DEFAULT_STACK_SIZE,
+ THREAD_PRIORITY_HIGH))) {
AppLog("Failed to create AudioThread");
return null;
}
@@ -135,6 +137,12 @@ bool AudioThread::OnStart(void) { }
int sampleRate = _mixer->getOutputRate();
+
+ // ideally we would update _mixer with GetOptimizedSampleRate here
+ if (_audioOut->GetOptimizedSampleRate() != sampleRate) {
+ AppLog("Non optimal sample rate %d", _audioOut->GetOptimizedSampleRate());
+ }
+
if (IsFailed(_audioOut->Prepare(AUDIO_TYPE_PCM_S16_LE,
AUDIO_CHANNEL_TYPE_STEREO,
sampleRate))) {
|