X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fuiq3%2Fengine%2Faudio_mediaserver.h;h=fc94f7c1397e74f97185e014de69b2693b4abd34;hb=40a39dd7fd689103e39861daeb81f904f454a7ed;hp=25d10275031f78c6364b554c3f45667e8c474dc3;hpb=cc68a136aa179a5f32fe40208371eb9c2b0aadae;p=picodrive.git diff --git a/platform/uiq3/engine/audio_mediaserver.h b/platform/uiq3/engine/audio_mediaserver.h index 25d1027..fc94f7c 100644 --- a/platform/uiq3/engine/audio_mediaserver.h +++ b/platform/uiq3/engine/audio_mediaserver.h @@ -15,11 +15,11 @@ #ifndef __AUDIO_MEDIASERVER_H #define __AUDIO_MEDIASERVER_H -#include -#include +#include +#include //#include "audio.h" -#include "polledas.h" +#include "PolledAS.h" const TInt KSoundBuffers = 4; @@ -44,12 +44,12 @@ public: // implements IGameAudio TInt16 *NextFrameL(TInt aPcmFrames); TInt16 *ResumeL(); void Pause(); - void ChangeVolume(TInt aUp); + TInt ChangeVolume(TInt aUp); public: ~CGameAudioMS(); - CGameAudioMS(TInt aRate, TBool aStereo, TInt aWritesPerSec); - static CGameAudioMS* NewL(TInt aRate, TBool aStereo, TInt aWritesPerSec); + CGameAudioMS(TInt aRate, TBool aStereo, TInt aWritesPerSec, TInt aVolume); + static CGameAudioMS* NewL(TInt aRate, TBool aStereo, TInt aWritesPerSec, TInt aVolume); protected: void WriteBlockL(); @@ -70,12 +70,12 @@ protected: CPolledActiveScheduler *iScheduler; HBufC8* iSoundBuffers[KSoundBuffers]; - TInt iWritesPerSec; - TInt iBufferedFrames; + TInt iWritesPerSec; // fps, may be more actual writes + TInt iMaxWriteSamples; // max samples per write TInt16* iCurrentPosition; - TInt iCurrentBuffer; - TInt iCurrentBufferSize; - TInt iFrameCount; + TInt iCurrentBuffer; // active buffer + TInt iCurrentBufferSize; // bytes filled in buffer + TInt iBufferSize; CMdaServer* iServer; TInt64 iTime;