mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #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:
@ -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
|
||||
|
Reference in New Issue
Block a user