added some android code

This commit is contained in:
Volker Fischer 2014-01-20 20:42:58 +00:00
parent 90467df03c
commit e76ce47cd6
2 changed files with 13 additions and 1 deletions

View File

@ -205,6 +205,13 @@ void CSound::Stop()
int CSound::Init ( const int iNewPrefMonoBufferSize ) int CSound::Init ( const int iNewPrefMonoBufferSize )
{ {
// TODO make use of the following:
// String sampleRate = am.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE));
// String framesPerBuffer = am.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER));
// store buffer size // store buffer size
iOpenSLBufferSizeMono = iNewPrefMonoBufferSize; iOpenSLBufferSizeMono = iNewPrefMonoBufferSize;
@ -215,7 +222,7 @@ int CSound::Init ( const int iNewPrefMonoBufferSize )
// TODO: somehow if the following line is enabled, we get a crash... // TODO: somehow if the following line is enabled, we get a crash...
iOpenSLBufferSizeStereo = 2 * iOpenSLBufferSizeMono; // iOpenSLBufferSizeStereo = 2 * iOpenSLBufferSizeMono;
// create memory for intermediate audio buffer // create memory for intermediate audio buffer
vecsTmpAudioSndCrdStereo.Init ( iOpenSLBufferSizeStereo ); vecsTmpAudioSndCrdStereo.Init ( iOpenSLBufferSizeStereo );

View File

@ -89,6 +89,11 @@ CConnectDlg::CConnectDlg ( const bool bNewShowCompleteRegList,
// make sure the connect button has the focus // make sure the connect button has the focus
butConnect->setFocus(); butConnect->setFocus();
#ifdef ANDROID
// for the android version maximize the window
setWindowState ( Qt::WindowMaximized );
#endif
// Connections ------------------------------------------------------------- // Connections -------------------------------------------------------------
// list view // list view