Logo Search packages:      
Sourcecode: qasmixer version File versions  Download package

Public Types | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes

QSnd::Snd_Mixer_Simple_Elem Class Reference

Snd_Mixer_Simple_Elem. More...

#include <snd_mixer_simple_elem.hpp>

List of all members.

Public Types

typedef std::vector
< snd_mixer_selem_channel_id_t > 
Channel_Buffer
typedef std::vector< QString > Enum_Names_Buffer

Signals

void sig_values_changed ()
 Gets emitted when values changed.

Public Member Functions

long ask_dB_vol (unsigned int snd_dir_n, long dB_value_n, int dir_n=-1)
long ask_dB_vol_nearest (unsigned int snd_dir_n, long dB_value_n)
long ask_vol_dB (unsigned int snd_dir_n, long volume_n)
snd_mixer_selem_channel_id_t channel (unsigned int snd_dir_n, unsigned int channel_idx_n) const
const char * channel_name (unsigned int snd_dir_n, unsigned int channel_idx_n) const
void clear ()
long dB_max (unsigned int snd_dir_n) const
long dB_min (unsigned int snd_dir_n) const
long dB_value (unsigned int snd_dir_n, unsigned int channel_idx_n) const
const QString & display_name () const
unsigned int elem_index () const
const char * elem_name () const
unsigned int enum_index (unsigned int snd_dir_n, unsigned int channel_idx_n) const
const Enum_Names_Buffer & enum_item_names () const
bool enum_joined (unsigned int snd_dir_n) const
unsigned int enum_num_items () const
bool enums_equal (unsigned int snd_dir_n) const
bool has_dB (unsigned int snd_dir_n) const
bool has_enum (unsigned int snd_dir_n) const
bool has_switch (unsigned int snd_dir_n) const
bool has_volume (unsigned int snd_dir_n) const
void invert_switches (unsigned int snd_dir_n)
bool is_active () const
void level_switches (unsigned int snd_dir_n)
void level_volumes (unsigned int snd_dir_n)
unsigned int num_channels (unsigned int snd_dir_n) const
unsigned int num_enum_channels (unsigned int snd_dir_n) const
unsigned int num_switch_channels (unsigned int snd_dir_n) const
unsigned int num_volume_channels (unsigned int snd_dir_n) const
void set_dB (unsigned int snd_dir_n, int channel_idx_n, long dB_val_n, int dir_n=-1)
void set_dB_all (unsigned int snd_dir_n, long dB_val_n, int dir_n=-1)
void set_display_name (const QString &name_n)
void set_enum_index (unsigned int snd_dir_n, int channel_idx_n, unsigned int index_n)
void set_enum_index_all (unsigned int snd_dir_n, unsigned int index_n)
void set_snd_mixer (snd_mixer_t *mixer_n)
void set_snd_mixer_selem_id (snd_mixer_selem_id_t *selem_id_n)
void set_switch (unsigned int snd_dir_n, int channel_idx_n, bool index_n)
void set_switch_all (unsigned int snd_dir_n, bool index_n)
void set_volume (unsigned int snd_dir_n, int channel_idx_n, long volume_n)
void set_volume_all (unsigned int snd_dir_n, long volume_n)
void signalize_changes ()
void signalize_element_changed ()
 Signalizes the parent that this element changed.
snd_mixer_t * snd_mixer () const
snd_mixer_elem_t * snd_mixer_elem () const
snd_mixer_selem_id_t * snd_mixer_selem_id () const
 Snd_Mixer_Simple_Elem (QObject *parent_n=0, snd_mixer_t *mixer_n=0, snd_mixer_selem_id_t *elem_id_n=0)
bool switch_joined (unsigned int snd_dir_n) const
bool switch_state (unsigned int snd_dir_n, unsigned int channel_idx_n) const
bool switches_equal (unsigned int snd_dir_n) const
void update_values ()
 Reads all values from alsa.
void update_values_mark ()
 Reads all values from alsa and marks a change.
long volume (unsigned int snd_dir_n, unsigned int channel_idx_n) const
bool volume_joined (unsigned int snd_dir_n) const
long volume_max (unsigned int snd_dir_n) const
long volume_min (unsigned int snd_dir_n) const
bool volumes_equal (unsigned int snd_dir_n) const

Static Public Member Functions

static int alsa_callback_mixer_elem (snd_mixer_elem_t *elem_n, unsigned int mask_n)

Protected Member Functions

void value_was_set ()

Private Attributes

Channel_Buffer _channels [2]
long _dB_max [2]
long _dB_min [2]
QString _display_name
Enum_Names_Buffer _enum_item_names
unsigned int _enum_num_items
bool _enums_equal [2]
unsigned int _num_enum_channels [2]
unsigned int _num_switch_channels [2]
unsigned int _num_volume_channels [2]
snd_mixer_t * _snd_mixer
snd_mixer_selem_id_t * _snd_mixer_selem_id
bool _switches_equal [2]
bool _values_changed
long _volume_max [2]
long _volume_min [2]
bool _volumes_equal [2]

Detailed Description

Snd_Mixer_Simple_Elem.

Brings Qt and ALSA objects together but without any GUI objects

Definition at line 33 of file snd_mixer_simple_elem.hpp.


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

Generated by  Doxygen 1.6.0   Back to index