* #7127: apply astylerc to daemon and client.

99 % of these are just whitespace changes. Some unnecessary includes
removed as well
This commit is contained in:
Tristan Matthews
2011-10-11 13:43:26 -04:00
parent 58a3182518
commit a9f3dc574f
228 changed files with 14109 additions and 13564 deletions

View File

@ -38,58 +38,58 @@
* This data structure contains the different king of audio streams available
*/
enum STREAM_TYPE {
PLAYBACK_STREAM, CAPTURE_STREAM, RINGTONE_STREAM
PLAYBACK_STREAM, CAPTURE_STREAM, RINGTONE_STREAM
};
class AudioStream {
public:
public:
/**
* Constructor
*
* @param context pulseaudio's application context.
* @param mainloop pulseaudio's main loop
* @param description
* @param types
* @param audio sampling rate
* @param device name
*/
AudioStream(pa_context *, pa_threaded_mainloop *, const char *, int, int, std::string *);
/**
* Constructor
*
* @param context pulseaudio's application context.
* @param mainloop pulseaudio's main loop
* @param description
* @param types
* @param audio sampling rate
* @param device name
*/
AudioStream(pa_context *, pa_threaded_mainloop *, const char *, int, int, std::string *);
~AudioStream();
~AudioStream();
/**
* Accessor: Get the pulseaudio stream object
* @return pa_stream* The stream
*/
pa_stream* pulseStream() {
return _audiostream;
}
/**
* Accessor: Get the pulseaudio stream object
* @return pa_stream* The stream
*/
pa_stream* pulseStream() {
return _audiostream;
}
bool isReady(void);
bool isReady(void);
private:
private:
// Copy Constructor
AudioStream(const AudioStream& rh);
// Copy Constructor
AudioStream(const AudioStream& rh);
// Assignment Operator
AudioStream& operator=(const AudioStream& rh);
// Assignment Operator
AudioStream& operator=(const AudioStream& rh);
/**
* Mandatory asynchronous callback on the audio stream state
*/
static void stream_state_callback(pa_stream* s, void* user_data);
/**
* Mandatory asynchronous callback on the audio stream state
*/
static void stream_state_callback(pa_stream* s, void* user_data);
/**
* The pulse audio object
*/
pa_stream* _audiostream;
/**
* The pulse audio object
*/
pa_stream* _audiostream;
/**
* A pointer to the opaque threaded main loop object
*/
pa_threaded_mainloop * _mainloop;
/**
* A pointer to the opaque threaded main loop object
*/
pa_threaded_mainloop * _mainloop;
};
#endif // _AUDIO_STREAM_H