mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #26839: pulselayer: fix formatting with astyle
This commit is contained in:
@ -49,28 +49,27 @@ class AudioStream;
|
|||||||
* Convenience structure to hold PulseAudio device propreties such as supported channel number etc.
|
* Convenience structure to hold PulseAudio device propreties such as supported channel number etc.
|
||||||
*/
|
*/
|
||||||
typedef struct PaDeviceInfos {
|
typedef struct PaDeviceInfos {
|
||||||
unsigned index; // TODO: should use uint32_t (with C++11) since it's the PA type for indexes
|
unsigned index; // TODO: should use uint32_t (with C++11) since it's the PA type for indexes
|
||||||
std::string name;
|
std::string name;
|
||||||
pa_sample_spec sample_spec;
|
pa_sample_spec sample_spec;
|
||||||
pa_channel_map channel_map;
|
pa_channel_map channel_map;
|
||||||
|
|
||||||
PaDeviceInfos(unsigned idx, const char* ep_name, pa_sample_spec samp_spec, pa_channel_map chan_map)
|
PaDeviceInfos(unsigned idx, const char* ep_name, pa_sample_spec samp_spec, pa_channel_map chan_map)
|
||||||
: index(idx), name(ep_name), sample_spec(samp_spec), channel_map(chan_map) {}
|
: index(idx), name(ep_name), sample_spec(samp_spec), channel_map(chan_map) {}
|
||||||
virtual ~PaDeviceInfos() {}
|
virtual ~PaDeviceInfos() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unary function to search for a device by name in a list using std functions.
|
* Unary function to search for a device by name in a list using std functions.
|
||||||
*/
|
*/
|
||||||
class nameComparator
|
class nameComparator {
|
||||||
{
|
public:
|
||||||
public:
|
explicit nameComparator(const std::string &ref) : baseline(ref) {}
|
||||||
explicit nameComparator(const std::string &ref) : baseline(ref) {}
|
bool operator()(const PaDeviceInfos &arg) {
|
||||||
bool operator() (const PaDeviceInfos &arg) {
|
return arg.name == baseline;
|
||||||
return arg.name == baseline;
|
}
|
||||||
}
|
private:
|
||||||
private:
|
const std::string &baseline;
|
||||||
const std::string &baseline;
|
};
|
||||||
};
|
|
||||||
} PaDeviceInfos;
|
} PaDeviceInfos;
|
||||||
|
|
||||||
class PulseLayer : public AudioLayer {
|
class PulseLayer : public AudioLayer {
|
||||||
|
Reference in New Issue
Block a user