mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 18:18:54 +00:00
61f5ca1e4d
In line with the Audio_out session a Audio_in session is used to record audio frames. Like in the Audio_out session shared memory in form of the Audio_in::Stream is used to transport the frames from the server to the client. These frames consist of single channel (mono) samples. An Audio_in::Packet always contains a full period of frames. A Audio_in server captures frames and puts them into the Audio_in::Stream. To do so the server allocates a Audio_in::Packet from the packet queue embedded in the Audio_in::Stream. If the queue is already full, the server will override packets and notify the client by submitting the 'overrun' signal. The client has to cope with this situation, e.g., by saving packets more frequently. A client will also receive a 'progress' signal from the server when a new Audio_in::Packet was submitted to the packet queue. Fixes #1644.
30 lines
713 B
C++
30 lines
713 B
C++
/*
|
|
* \brief Audio-in session capability type
|
|
* \author Josef Soentgen
|
|
* \date 2015-05-08
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2015 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__AUDIO_IN_SESSION__CAPABILITY_H_
|
|
#define _INCLUDE__AUDIO_IN_SESSION__CAPABILITY_H_
|
|
|
|
#include <session/capability.h>
|
|
|
|
namespace Audio_in {
|
|
|
|
/*
|
|
* We cannot include 'audio_in_session/audio_in_session.h'
|
|
* because this file relies on the 'Audio_in::Session_capability' type.
|
|
*/
|
|
class Session;
|
|
typedef Genode::Capability<Session> Session_capability;
|
|
}
|
|
|
|
#endif /* _INCLUDE__AUDIO_IN_SESSION__CAPABILITY_H_ */
|