Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
BackgroundMusicPlayer Class Reference
+ Inheritance diagram for BackgroundMusicPlayer:
+ Collaboration diagram for BackgroundMusicPlayer:

Public Attributes

AudioClip audioClip
 
int fftWindowSize = 1024
 
float threshold = 0.9f
 
float loopStart
 
float loopEnd
 

Private Member Functions

void Awake ()
 
void Start ()
 
void GenerateLoopPointsWithFFT ()
 
float[] CalculateFFT (float[] samples)
 
void FFT (System.Numerics.Complex[] buffer)
 
int BitReverse (int x, int bits)
 
float CompareFFT (float[] fft1, float[] fft2)
 
void CheckLoopPoint ()
 

Private Attributes

AudioSource audioSource
 

Member Function Documentation

◆ Awake()

void BackgroundMusicPlayer.Awake ( )
private

◆ BitReverse()

int BackgroundMusicPlayer.BitReverse ( int x,
int bits )
private

◆ CalculateFFT()

float[] BackgroundMusicPlayer.CalculateFFT ( float[] samples)
private

◆ CheckLoopPoint()

void BackgroundMusicPlayer.CheckLoopPoint ( )
private

◆ CompareFFT()

float BackgroundMusicPlayer.CompareFFT ( float[] fft1,
float[] fft2 )
private

◆ FFT()

void BackgroundMusicPlayer.FFT ( System.Numerics.Complex[] buffer)
private

◆ GenerateLoopPointsWithFFT()

void BackgroundMusicPlayer.GenerateLoopPointsWithFFT ( )
private

◆ Start()

void BackgroundMusicPlayer.Start ( )
private

Member Data Documentation

◆ audioClip

AudioClip BackgroundMusicPlayer.audioClip

◆ audioSource

AudioSource BackgroundMusicPlayer.audioSource
private

◆ fftWindowSize

int BackgroundMusicPlayer.fftWindowSize = 1024

◆ loopEnd

float BackgroundMusicPlayer.loopEnd

◆ loopStart

float BackgroundMusicPlayer.loopStart

◆ threshold

float BackgroundMusicPlayer.threshold = 0.9f

The documentation for this class was generated from the following file: