Commit 4c995137 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #26839: pulselayer: fix formatting with astyle

parent bb1e4873
......@@ -49,28 +49,27 @@ class AudioStream;
* Convenience structure to hold PulseAudio device propreties such as supported channel number etc.
*/
typedef struct PaDeviceInfos {
unsigned index; // TODO: should use uint32_t (with C++11) since it's the PA type for indexes
std::string name;
pa_sample_spec sample_spec;
pa_channel_map channel_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) {}
virtual ~PaDeviceInfos() {}
/**
* Unary function to search for a device by name in a list using std functions.
*/
class nameComparator
{
public:
explicit nameComparator(const std::string &ref) : baseline(ref) {}
bool operator() (const PaDeviceInfos &arg) {
return arg.name == baseline;
}
private:
const std::string &baseline;
};
unsigned index; // TODO: should use uint32_t (with C++11) since it's the PA type for indexes
std::string name;
pa_sample_spec sample_spec;
pa_channel_map channel_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) {}
virtual ~PaDeviceInfos() {}
/**
* Unary function to search for a device by name in a list using std functions.
*/
class nameComparator {
public:
explicit nameComparator(const std::string &ref) : baseline(ref) {}
bool operator()(const PaDeviceInfos &arg) {
return arg.name == baseline;
}
private:
const std::string &baseline;
};
} PaDeviceInfos;
class PulseLayer : public AudioLayer {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment