TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
ChannelMap Class Reference

This class represents audio channel mapping. More...

#include <channelmap.h>

+ Inheritance diagram for ChannelMap:

Public Member Functions

 ChannelMap (int channels=0)
 
int mask () const
 
ChannelMap remaped () const
 
QString toString () const
 

Private Member Functions

void generateMap (int channels)
 

Static Private Attributes

static Qmmp::ChannelPosition m_internal_map [9]
 

Detailed Description

This class represents audio channel mapping.

Definition at line 30 of file channelmap.h.

Constructor & Destructor Documentation

ChannelMap::ChannelMap ( int  channels = 0)
explicit

Constructs channel mapping with internal order.

Parameters
channelsNumber channels

Member Function Documentation

void ChannelMap::generateMap ( int  channels)
private
int ChannelMap::mask ( ) const

Returns a mask with used channels.

ChannelMap ChannelMap::remaped ( ) const

Converts current channel order to internal.

QString ChannelMap::toString ( ) const

Converts channel channel mapping to string representation (for debug purposes).

Member Data Documentation

Qmmp::ChannelPosition ChannelMap::m_internal_map[9]
staticprivate

Definition at line 53 of file channelmap.h.


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