PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ahx.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AHXPListEntry
 
struct  AHXPList
 
struct  AHXEnvelope
 
struct  AHXInstrument
 
struct  AHXPosition
 
struct  AHXStep
 
struct  AHXSong
 
struct  AHXVoice
 
struct  AHXWaves
 

Functions

void AHXPlayer_Init ()
 
int AHXPlayer_LoadSongBuffer (void *Buffer, int Len)
 
int AHXPlayer_InitSubsong (int Nr)
 
void AHXPlayer_NextPosition ()
 
void AHXPlayer_PrevPosition ()
 
void AHXPlayer_VoiceOnOff (int Voice, int OnOff)
 
void AHXPlayer_SetAudio (int v)
 
void AHXPlayer_PListCommandParse (int v, int FX, int FXParam)
 
void AHXPlayer_PlayIRQ ()
 
void AHXPlayer_ProcessStep (int v)
 
void AHXPlayer_ProcessFrame (int v)
 
void AHXPlayer_SetBoost (int boostval)
 
void AHXPlayer_SetOversampling (int enable)
 
void AHXOutput_MixBuffer (short *target)
 

Detailed Description

AHX player functions

Definition in file ahx.h.


Data Structure Documentation

◆ AHXPListEntry

struct AHXPListEntry

Definition at line 19 of file ahx.h.

Data Fields
int Note
int Fixed
int Waveform
int FX[2]
int FXParam[2]

◆ AHXPList

struct AHXPList

Definition at line 27 of file ahx.h.

+ Collaboration diagram for AHXPList:
Data Fields
int Speed
int Length
struct AHXPListEntry * Entries

◆ AHXEnvelope

struct AHXEnvelope

Definition at line 33 of file ahx.h.

Data Fields
int aFrames
int aVolume
int dFrames
int dVolume
int sFrames
int rFrames
int rVolume

◆ AHXInstrument

struct AHXInstrument

Definition at line 41 of file ahx.h.

+ Collaboration diagram for AHXInstrument:
Data Fields
char * Name
int Volume
int WaveLength
struct AHXEnvelope Envelope
int FilterLowerLimit
int FilterUpperLimit
int FilterSpeed
int SquareLowerLimit
int SquareUpperLimit
int SquareSpeed
int VibratoDelay
int VibratoDepth
int VibratoSpeed
int HardCutRelease
int HardCutReleaseFrames
struct AHXPList PList

◆ AHXPosition

struct AHXPosition

Definition at line 54 of file ahx.h.

Data Fields
int Track[4]
int Transpose[4]

◆ AHXStep

struct AHXStep

Definition at line 59 of file ahx.h.

Data Fields
int Note
int Instrument
int FX
int FXParam

◆ AHXSong

struct AHXSong

Definition at line 64 of file ahx.h.

Data Fields
char * Name
int Restart
int PositionNr
int TrackLength
int TrackNr
int InstrumentNr
int SubsongNr
int Revision
int SpeedMultiplier
int * Subsongs

◆ AHXVoice

struct AHXVoice

Definition at line 72 of file ahx.h.

+ Collaboration diagram for AHXVoice:
Data Fields
int VoiceVolume
int VoicePeriod
char VoiceBuffer[0x281]
int Track
int Transpose
int NextTrack
int NextTranspose
int ADSRVolume
struct AHXEnvelope ADSR
struct AHXInstrument * Instrument
int InstrPeriod
int TrackPeriod
int VibratoPeriod
int NoteMaxVolume
int PerfSubVolume
int TrackMasterVolume
int NewWaveform
int Waveform
int PlantSquare
int PlantPeriod
int IgnoreSquare
int TrackOn
int FixedNote
int VolumeSlideUp
int VolumeSlideDown
int HardCut
int HardCutRelease
int HardCutReleaseF
int PeriodSlideSpeed
int PeriodSlidePeriod
int PeriodSlideLimit
int PeriodSlideOn
int PeriodSlideWithLimit
int PeriodPerfSlideSpeed
int PeriodPerfSlidePeriod
int PeriodPerfSlideOn
int VibratoDelay
int VibratoCurrent
int VibratoDepth
int VibratoSpeed
int SquareOn
int SquareInit
int SquareWait
int SquareLowerLimit
int SquareUpperLimit
int SquarePos
int SquareSign
int SquareSlidingIn
int SquareReverse
int FilterOn
int FilterInit
int FilterWait
int FilterLowerLimit
int FilterUpperLimit
int FilterPos
int FilterSign
int FilterSpeed
int FilterSlidingIn
int IgnoreFilter
int PerfCurrent
int PerfSpeed
int PerfWait
int WaveLength
struct AHXPList * PerfList
int NoteDelayWait
int NoteDelayOn
int NoteCutWait
int NoteCutOn
char * AudioSource
int AudioPeriod
int AudioVolume
char SquareTempBuffer[0x80]

◆ AHXWaves

struct AHXWaves

Definition at line 102 of file ahx.h.

Data Fields
char LowPasses[0x31588]
char Triangle04[0x04]
char Triangle08[0x08]
char Triangle10[0x10]
char Triangle20[0x20]
char Triangle40[0x40]
char Triangle80[0x80]
char Sawtooth04[0x04]
char Sawtooth08[0x08]
char Sawtooth10[0x10]
char Sawtooth20[0x20]
char Sawtooth40[0x40]
char Sawtooth80[0x80]
char Squares[0x1000]
char WhiteNoiseBig[0x780]
char HighPasses[0x31588]

Function Documentation

◆ AHXPlayer_Init()

void AHXPlayer_Init ( )

Definition at line 296 of file AHX.c.

◆ AHXPlayer_LoadSongBuffer()

int AHXPlayer_LoadSongBuffer ( void *  Buffer,
int  Len 
)

Definition at line 345 of file AHX.c.

◆ AHXPlayer_InitSubsong()

int AHXPlayer_InitSubsong ( int  Nr)

Definition at line 489 of file AHX.c.

◆ AHXPlayer_NextPosition()

void AHXPlayer_NextPosition ( )

Definition at line 519 of file AHX.c.

◆ AHXPlayer_PrevPosition()

void AHXPlayer_PrevPosition ( )

Definition at line 528 of file AHX.c.

◆ AHXPlayer_VoiceOnOff()

void AHXPlayer_VoiceOnOff ( int  Voice,
int  OnOff 
)

Definition at line 1092 of file AHX.c.

◆ AHXPlayer_SetAudio()

void AHXPlayer_SetAudio ( int  v)

Definition at line 1066 of file AHX.c.

◆ AHXPlayer_PListCommandParse()

void AHXPlayer_PListCommandParse ( int  v,
int  FX,
int  FXParam 
)

Definition at line 745 of file AHX.c.

◆ AHXPlayer_PlayIRQ()

void AHXPlayer_PlayIRQ ( )

Definition at line 1102 of file AHX.c.

◆ AHXPlayer_ProcessStep()

void AHXPlayer_ProcessStep ( int  v)

Definition at line 537 of file AHX.c.

◆ AHXPlayer_ProcessFrame()

void AHXPlayer_ProcessFrame ( int  v)

Definition at line 812 of file AHX.c.

◆ AHXPlayer_SetBoost()

void AHXPlayer_SetBoost ( int  boostval)

Definition at line 1153 of file AHX.c.

◆ AHXPlayer_SetOversampling()

void AHXPlayer_SetOversampling ( int  enable)

Definition at line 1159 of file AHX.c.

◆ AHXOutput_MixBuffer()

void AHXOutput_MixBuffer ( short *  target)

Definition at line 1204 of file AHX.c.