Information describing audio properties.  
 More...
#include <gstreamermm/audioinfo.h>
|  | 
| static GType | get_type () | 
|  | Get the GType for this class, for use with the underlying GObject type system.  More... 
 | 
|  | 
Information describing audio properties. 
This information can be filled in from Gst::Caps with from_caps() or Gst::AudioInfo() constructor.
Last reviewed on 2016-04-23 (1.8.0). 
§ AudioInfo() [1/5]
      
        
          | Gst::AudioInfo::AudioInfo | ( |  | ) |  | 
      
 
 
§ AudioInfo() [2/5]
  
  | 
        
          | Gst::AudioInfo::AudioInfo | ( | GstAudioInfo * | gobject, |  
          |  |  | bool | make_a_copy = true |  
          |  | ) |  |  |  | explicit | 
 
 
§ AudioInfo() [3/5]
      
        
          | Gst::AudioInfo::AudioInfo | ( | const AudioInfo& | other | ) |  | 
      
 
 
§ AudioInfo() [4/5]
  
  | 
        
          | Gst::AudioInfo::AudioInfo | ( | AudioInfo&& | other | ) |  |  | noexcept | 
 
 
§ ~AudioInfo()
  
  | 
        
          | Gst::AudioInfo::~AudioInfo | ( |  | ) |  |  | noexcept | 
 
 
§ AudioInfo() [5/5]
Create AudioInfo from caps. 
- Parameters
- 
  
  
- Exceptions
- 
  
  
 
 
§ convert()
      
        
          | bool Gst::AudioInfo::convert | ( | Gst::Format | fmt, | 
        
          |  |  | gint64 | src_val, | 
        
          |  |  | Gst::Format | dest_fmt, | 
        
          |  |  | gint64 & | dest_val | 
        
          |  | ) |  | const | 
      
 
Converts among various Gst::Format types. 
This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw audio, GST_FORMAT_DEFAULT corresponds to audio frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT.
- Since gstreamermm 1.8:
- Parameters
- 
  
    | fmt | Gst::Format of the src_val. |  | src_val | Value to convert. |  | dest_fmt | Gst::Format of the dest_val. |  | dest_val | Pointer to destination value. |  
 
- Returns
- trueif the conversion was successful.
 
 
§ from_caps()
Parse caps and update info. 
- Parameters
- 
  
  
- Returns
- trueif caps could be parsed.
 
 
§ get_bpf()
      
        
          | int Gst::AudioInfo::get_bpf | ( |  | ) | const | 
      
 
 
§ get_channels()
      
        
          | int Gst::AudioInfo::get_channels | ( |  | ) | const | 
      
 
 
§ get_finfo()
§ get_flags()
§ get_layout()
§ get_rate()
      
        
          | int Gst::AudioInfo::get_rate | ( |  | ) | const | 
      
 
 
§ get_type()
  
  | 
        
          | static GType Gst::AudioInfo::get_type | ( |  | ) |  |  | static | 
 
Get the GType for this class, for use with the underlying GObject type system. 
 
 
§ gobj() [1/2]
  
  | 
        
          | GstAudioInfo* Gst::AudioInfo::gobj | ( |  | ) |  |  | inline | 
 
Provides access to the underlying C instance. 
 
 
§ gobj() [2/2]
  
  | 
        
          | const GstAudioInfo* Gst::AudioInfo::gobj | ( |  | ) | const |  | inline | 
 
Provides access to the underlying C instance. 
 
 
§ gobj_copy()
      
        
          | GstAudioInfo* Gst::AudioInfo::gobj_copy | ( |  | ) | const | 
      
 
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. 
 
 
§ init()
      
        
          | void Gst::AudioInfo::init | ( |  | ) |  | 
      
 
Initialize info with default values. 
 
 
§ is_equal()
Compares two Gst::AudioInfo and returns whether they are equal or not. 
- Parameters
- 
  
  
- Returns
- trueif info and other are equal, else- false.
 
 
§ operator=() [1/2]
§ operator=() [2/2]
§ set_bpf()
      
        
          | void Gst::AudioInfo::set_bpf | ( | const int & | value | ) |  | 
      
 
 
§ set_channels()
      
        
          | void Gst::AudioInfo::set_channels | ( | const int & | value | ) |  | 
      
 
 
§ set_flags()
§ set_format()
Set the default info for the audio info of format and rate and channels. 
- Note
- This initializes info first, no values are preserved.
- Since gstreamermm 1.8:
- Parameters
- 
  
    | format | The format. |  | rate | The samplerate. |  | channels | The number of channels. |  | position | The channel positions. |  
 
 
 
§ set_layout()
§ set_rate()
      
        
          | void Gst::AudioInfo::set_rate | ( | const int & | value | ) |  | 
      
 
 
§ swap()
  
  | 
        
          | void Gst::AudioInfo::swap | ( | AudioInfo& | other | ) |  |  | noexcept | 
 
 
§ to_caps()
Convert the values of info into a Gst::Caps. 
- Returns
- The new Gst::Caps containing the info of info. 
 
 
§ swap()
- Parameters
- 
  
    | lhs | The left-hand side |  | rhs | The right-hand side |  
 
 
 
§ wrap()
A Glib::wrap() method for this object. 
- Parameters
- 
  
    | object | The C instance. |  | take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |  
 
- Returns
- A C++ instance that wraps this C instance. 
 
 
§ gobject_
  
  | 
        
          | GstAudioInfo* Gst::AudioInfo::gobject_ |  | protected |