diff options
Diffstat (limited to 'vcl/os2/inc/salsound.h')
-rw-r--r-- | vcl/os2/inc/salsound.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/vcl/os2/inc/salsound.h b/vcl/os2/inc/salsound.h index 2445bbe3c1a0..27a7a9aa1aff 100644 --- a/vcl/os2/inc/salsound.h +++ b/vcl/os2/inc/salsound.h @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,50 +46,50 @@ class Os2SalSound : public SalSound { private: - - static HMODULE mhMCILib; - static ULONG mnSoundState; - static void* mpMCIFnc; - SALSOUNDPROC mpProc; - void* mpInst; - ULONG mnStartTime; - ULONG mnPlayLen; - HWND mhSoundWnd; - USHORT mnDeviceId; - BOOL mbLoop; - BOOL mbPaused; + + static HMODULE mhMCILib; + static ULONG mnSoundState; + static void* mpMCIFnc; + SALSOUNDPROC mpProc; + void* mpInst; + ULONG mnStartTime; + ULONG mnPlayLen; + HWND mhSoundWnd; + USHORT mnDeviceId; + BOOL mbLoop; + BOOL mbPaused; public: void ImplSetError( ULONG nMciErr ); - void ImplNotify( SoundNotification eNotification, ULONG nError ); + void ImplNotify( SoundNotification eNotification, ULONG nError ); -public: +public: - BOOL Create(); - //static BOOL IsValid() { return( SOUND_STATE_VALID == Os2SalSound::mnSoundState ); } - //BOOL Init( SalFrame* pFrame, const String& rSoundName, ULONG& rSoundLen ); - //BOOL Init( SalFrame* pFrame, const BYTE* pSound, ULONG nDataLen, ULONG& rSoundLen ); + BOOL Create(); + //static BOOL IsValid() { return( SOUND_STATE_VALID == Os2SalSound::mnSoundState ); } + //BOOL Init( SalFrame* pFrame, const String& rSoundName, ULONG& rSoundLen ); + //BOOL Init( SalFrame* pFrame, const BYTE* pSound, ULONG nDataLen, ULONG& rSoundLen ); - void SetNotifyProc( void* pInst, SALSOUNDPROC pProc ) + void SetNotifyProc( void* pInst, SALSOUNDPROC pProc ) { mpInst = pInst; mpProc = pProc; } public: Os2SalSound(); virtual ~Os2SalSound(); + + virtual bool IsValid(); + virtual bool Init( const String& rSoundName, ULONG& rSoundLen ); + virtual void Play( ULONG nStartTime, ULONG nPlayTime, bool bLoop ); + virtual void Stop(); + virtual void Pause(); + virtual void Continue(); + virtual bool IsLoopMode() const; + virtual bool IsPlaying() const; + virtual bool IsPaused() const; - virtual bool IsValid(); - virtual bool Init( const String& rSoundName, ULONG& rSoundLen ); - virtual void Play( ULONG nStartTime, ULONG nPlayTime, bool bLoop ); - virtual void Stop(); - virtual void Pause(); - virtual void Continue(); - virtual bool IsLoopMode() const; - virtual bool IsPlaying() const; - virtual bool IsPaused() const; - - bool ImplCreate(); - void ImplDestroy(); - static void Release(); + bool ImplCreate(); + void ImplDestroy(); + static void Release(); }; #endif // _SV_SALSOUND_H |