You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
/*
|
|
*
|
|
* This software is released under the provisions of the GPL version 2.
|
|
* see file "COPYING". If that file is not available, the full statement
|
|
* of the license can be found at
|
|
*
|
|
* http://www.fsf.org/licensing/licenses/gpl.txt
|
|
*
|
|
* Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
|
|
* Portions (c) Paul Cifarelli 2005
|
|
*
|
|
*/
|
|
|
|
#ifndef _HSPVOLADVISE_INCLUDED_
|
|
#define _HSPVOLADVISE_INCLUDED_
|
|
|
|
class HelixSimplePlayerVolumeAdvice : public IHXVolumeAdviseSink
|
|
{
|
|
public:
|
|
HelixSimplePlayerVolumeAdvice(HelixSimplePlayer *player, int playerIndex) : m_Player(player),m_index(playerIndex),m_lRefCount(0) {}
|
|
virtual ~HelixSimplePlayerVolumeAdvice() {}
|
|
|
|
/*
|
|
* IUnknown methods
|
|
*/
|
|
STDTQT_METHOD(QueryInterface) (THIS_
|
|
REFIID riid,
|
|
void** ppvObj);
|
|
|
|
STDMETHOD_(ULONG32,AddRef) (THIS);
|
|
|
|
STDMETHOD_(ULONG32,Release) (THIS);
|
|
|
|
/*
|
|
* IHXVolumeAdviceSink methods
|
|
*/
|
|
STDTQT_METHOD(OnVolumeChange) (THIS_
|
|
const UINT16 uVolume
|
|
);
|
|
STDTQT_METHOD(OnMuteChange) (THIS_
|
|
const BOOL bMute
|
|
);
|
|
|
|
private:
|
|
HelixSimplePlayerVolumeAdvice();
|
|
HelixSimplePlayer *m_Player;
|
|
int m_index;
|
|
LONG32 m_lRefCount;
|
|
LONG32 m_lClientIndex;
|
|
};
|
|
|
|
#endif
|