Audio 1.0.0
Public Member Functions | List of all members
AudioController Class Reference

BASS controller. More...

#include <controller.h>

Public Member Functions

 AudioController (int device, int freq)
 Controller constructor. More...
 
 ~AudioController ()
 Destructor. More...
 
int PlayStream (const std::string &file)
 Play audio file. More...
 
int PauseStream (void)
 Pause audio stream. More...
 
int ResumeStream (void)
 Resume audio stream. More...
 
int StopStream (void)
 Stop audio stream. More...
 
int getStreamStatus (void)
 
int IncreasePitch (void)
 Increase channel pitch. More...
 
int DecreasePitch (void)
 Decrease channel pitch. More...
 
int SetStreamSpeed (float speed)
 
float GetBpm (const std::string &path, double start, double end)
 Get bpm from file. More...
 

Detailed Description

BASS controller.

Author
Asiern
Since
Fri Aug 27 2021

Constructor & Destructor Documentation

◆ AudioController()

AudioController::AudioController ( int  device,
int  freq 
)

Controller constructor.

Parameters
deviceAudio device
freqAudio frequency

◆ ~AudioController()

AudioController::~AudioController ( )

Destructor.

Member Function Documentation

◆ DecreasePitch()

int AudioController::DecreasePitch ( void  )

Decrease channel pitch.

Returns

◆ GetBpm()

float AudioController::GetBpm ( const std::string &  path,
double  start,
double  end 
)

Get bpm from file.

Parameters
pathFile path
startStart detecting position in seconds
endEnd detecting position in seconds
Returns
Beats per minute

◆ getStreamStatus()

int AudioController::getStreamStatus ( void  )
Returns

◆ IncreasePitch()

int AudioController::IncreasePitch ( void  )

Increase channel pitch.

Returns

◆ PauseStream()

int AudioController::PauseStream ( void  )

Pause audio stream.

Returns

◆ PlayStream()

int AudioController::PlayStream ( const std::string &  path)

Play audio file.

Parameters
pathfile path
Returns

◆ ResumeStream()

int AudioController::ResumeStream ( void  )

Resume audio stream.

Returns

◆ SetStreamSpeed()

int AudioController::SetStreamSpeed ( float  speed)
Parameters
speed
Returns

◆ StopStream()

int AudioController::StopStream ( void  )

Stop audio stream.

Returns

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