mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
MusicMod: Moved it from Branches to Externals, I guess there usually is no Branches dir in the trunk dir, so this may look a little better
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2174 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
106
Externals/MusicMod/Player/Src/Playback.h
vendored
Normal file
106
Externals/MusicMod/Player/Src/Playback.h
vendored
Normal file
@ -0,0 +1,106 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Plainamp, Open source Winamp core
|
||||
//
|
||||
// Copyright <20> 2005 Sebastian Pipping <webmaster@hartwork.org>
|
||||
//
|
||||
// --> http://www.hartwork.org
|
||||
//
|
||||
// This source code is released under the GNU General Public License (GPL).
|
||||
// See GPL.txt for details. Any non-GPL usage is strictly forbidden.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#ifndef PA_PLAYBACK_H
|
||||
#define PA_PLAYBACK_H
|
||||
|
||||
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
|
||||
|
||||
#define ORDER_SINGLE 0
|
||||
#define ORDER_SINGLE_REPEAT 1
|
||||
#define ORDER_NORMAL 2
|
||||
#define ORDER_NORMAL_REPEAT 3
|
||||
#define ORDER_INVERSE 4
|
||||
#define ORDER_INVERSE_REPEAT 5
|
||||
#define ORDER_RANDOM 6
|
||||
|
||||
#define ORDER_FIRST ORDER_SINGLE
|
||||
#define ORDER_LAST ORDER_RANDOM
|
||||
|
||||
#define ORDER_DEFAULT ORDER_NORMAL_REPEAT
|
||||
|
||||
|
||||
#define TIMER_SEEK_UPDATE 1
|
||||
|
||||
|
||||
|
||||
typedef bool ( * PresetCallback )( TCHAR * );
|
||||
|
||||
|
||||
namespace Playback
|
||||
{
|
||||
bool Prev();
|
||||
bool Play();
|
||||
bool Pause();
|
||||
bool Stop();
|
||||
bool Next();
|
||||
|
||||
bool IsPlaying();
|
||||
bool IsPaused();
|
||||
|
||||
bool UpdateSeek();
|
||||
int PercentToMs( float fPercent );
|
||||
bool SeekPercent( float fPercent );
|
||||
bool Forward();
|
||||
bool Rewind();
|
||||
|
||||
void NotifyTrackEnd();
|
||||
|
||||
namespace Volume
|
||||
{
|
||||
int Get();
|
||||
bool Set( int iVol );
|
||||
bool Up();
|
||||
bool Down();
|
||||
};
|
||||
|
||||
namespace Pan
|
||||
{
|
||||
int Get();
|
||||
bool Set( int iPan );
|
||||
};
|
||||
|
||||
namespace Order
|
||||
{
|
||||
int GetCurMode();
|
||||
bool SetMode( int iMode );
|
||||
|
||||
TCHAR * GetModeName( int iMode );
|
||||
// int GetModeNameLen( int iMode );
|
||||
|
||||
bool Next( int & iCur, int iMax );
|
||||
bool Prev( int & iCur, int iMax );
|
||||
};
|
||||
|
||||
namespace Eq
|
||||
{
|
||||
// 63 -> -12db
|
||||
// 31 -> 0
|
||||
// 0 -> +12db
|
||||
// bool Get( char * eq_data );
|
||||
// bool Set( bool bOn, char * pData, int iPreamp );
|
||||
int GetCurIndex();
|
||||
bool SetIndex( int iPresetIndex );
|
||||
|
||||
bool Reapply();
|
||||
|
||||
bool ReadPresets( PresetCallback AddPreset );
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // PA_PLAYBACK_H
|
Reference in New Issue
Block a user