#ifndef __AUDIO_MEDIASERVER_H\r
#define __AUDIO_MEDIASERVER_H\r
\r
-#include <Mda\Common\Audio.h>\r
-#include <MdaAudioOutputStream.h>\r
+#include <mda/common/audio.h>\r
+#include <mdaaudiooutputstream.h>\r
\r
//#include "audio.h"\r
-#include "polledas.h"\r
+#include "PolledAS.h"\r
\r
const TInt KSoundBuffers = 4;\r
\r
TInt16 *NextFrameL(TInt aPcmFrames);\r
TInt16 *ResumeL();\r
void Pause();\r
- void ChangeVolume(TInt aUp);\r
+ TInt ChangeVolume(TInt aUp);\r
\r
public:\r
~CGameAudioMS();\r
- CGameAudioMS(TInt aRate, TBool aStereo, TInt aWritesPerSec);\r
- static CGameAudioMS* NewL(TInt aRate, TBool aStereo, TInt aWritesPerSec);\r
+ CGameAudioMS(TInt aRate, TBool aStereo, TInt aWritesPerSec, TInt aVolume);\r
+ static CGameAudioMS* NewL(TInt aRate, TBool aStereo, TInt aWritesPerSec, TInt aVolume);\r
\r
protected:\r
void WriteBlockL();\r
CPolledActiveScheduler *iScheduler;\r
\r
HBufC8* iSoundBuffers[KSoundBuffers];\r
- TInt iWritesPerSec;\r
- TInt iBufferedFrames;\r
+ TInt iWritesPerSec; // fps, may be more actual writes\r
+ TInt iMaxWriteSamples; // max samples per write\r
TInt16* iCurrentPosition;\r
- TInt iCurrentBuffer;\r
- TInt iCurrentBufferSize;\r
- TInt iFrameCount;\r
+ TInt iCurrentBuffer; // active buffer\r
+ TInt iCurrentBufferSize; // bytes filled in buffer\r
+ TInt iBufferSize;\r
CMdaServer* iServer;\r
\r
TInt64 iTime;\r