 |
Gorgon Game Engine
|
Go to the documentation of this file.
5 namespace Gorgon {
namespace CGI {
10 template<
class Color_ = Graphics::RGBA>
29 underlying.Blend(color, alpha);
void Initialize()
Starts audio subsystem with the default device.
Definition: Filesystem.cpp:14
Color_ GetColor() const
Returns the color.
Definition: CGI.h:24
void swap(Event< Source_, Args_... > &l, Event< Source_, Args_... > &r)
Swaps two events.
Definition: Event.h:351
Fills a drawing with a solid color.
Definition: CGI.h:11
std::thread audiothread
Definition: Audio.cpp:29
unsigned long GetTime()
Returns current time in milliseconds.
Definition: Linux.cpp:34
SolidFill(Color_ color)
Implicit typecast from a solid color.
Definition: CGI.h:16
static void Refresh()
Refreshes the list of audio devices. Calling this function triggers ChangedEvent.
bool IsAvailable()
Whether the audio is available.
int BufferSize
Definition: Audio.cpp:32
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
static Device Find(const std::string &id)
Name based device lookup.
Definition: Audio.h:110
std::vector< float > volume
Definition: Audio.cpp:35
std::string GetSystemName()
Returns the name of the current system.
Definition: Main.h:38
Device Current
Definition: Audio.cpp:24
std::string ToLower(std::string str)
Converts the given string to lowercase.
Definition: String.h:416
@ Success
Definition: Logging.h:112
void AudioLoop()
Definition: Audio.cpp:76
float BufferDuration
Definition: Audio.cpp:31
bool IsHeadphones() const
Returns if this device is connected to headphones.
Definition: Audio.h:91
This class represents a 2D point.
Definition: Point.h:32
helper Log(const T_ &v, State state=Error)
Streams out the given value to the underlying stream.
Definition: Logging.h:200
int GetSampleRate() const
Returns number of samples per second.
Definition: Audio.h:56
Channel
Names for channels.
Definition: Basic.h:16
Color_ operator()(Geometry::Pointf, Geometry::Point, Color_ underlying, float alpha)
Definition: CGI.h:28
Color_ ColorType
Definition: CGI.h:13
int GetChannelCount() const
Returns the number of channels available.
Definition: Audio.h:67
static const std::vector< Device > & Devices()
Returns the devices in the current system.
Definition: Audio.h:96
void SetColor(Color_ value)
Sets the color.
Definition: CGI.h:19
static Device Default()
Returns the default device of the current system.
Definition: Audio.h:101
Format
Sample format.
Definition: Basic.h:9