mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
audio_in: fix compile errors when strict warnings are enabled
Fixes #4290
This commit is contained in:
parent
b337ee2f2b
commit
d5d7915b4d
@ -36,10 +36,14 @@ namespace Audio_in {
|
||||
|
||||
enum {
|
||||
QUEUE_SIZE = 431, /* buffer queue size (~5s) */
|
||||
PERIOD = 512, /* samples per periode (~11.6ms) */
|
||||
SAMPLE_RATE = 44100,
|
||||
SAMPLE_SIZE = sizeof(float),
|
||||
};
|
||||
|
||||
/**
|
||||
* Samples per period (~11.6ms)
|
||||
*/
|
||||
static constexpr Genode::size_t PERIOD = 512;
|
||||
}
|
||||
|
||||
|
||||
@ -265,7 +269,7 @@ class Audio_in::Session : public Genode::Session
|
||||
{
|
||||
protected:
|
||||
|
||||
Stream *_stream;
|
||||
Stream *_stream { nullptr };
|
||||
|
||||
public:
|
||||
|
||||
|
@ -29,8 +29,8 @@ namespace Audio_in {
|
||||
|
||||
struct Audio_in::Signal
|
||||
{
|
||||
Genode::Signal_receiver recv;
|
||||
Genode::Signal_context context;
|
||||
Genode::Signal_receiver recv { };
|
||||
Genode::Signal_context context { };
|
||||
Genode::Signal_context_capability cap;
|
||||
|
||||
Signal() : cap(recv.manage(&context)) { }
|
||||
@ -46,7 +46,7 @@ class Audio_in::Session_client : public Genode::Rpc_client<Session>
|
||||
|
||||
Genode::Attached_dataspace _shared_ds;
|
||||
|
||||
Signal _progress;
|
||||
Signal _progress { };
|
||||
|
||||
Genode::Signal_transmitter _data_avail;
|
||||
|
||||
@ -77,13 +77,13 @@ class Audio_in::Session_client : public Genode::Rpc_client<Session>
|
||||
** Signals **
|
||||
*************/
|
||||
|
||||
void progress_sigh(Genode::Signal_context_capability sigh) {
|
||||
void progress_sigh(Genode::Signal_context_capability sigh) override {
|
||||
call<Rpc_progress_sigh>(sigh); }
|
||||
|
||||
void overrun_sigh(Genode::Signal_context_capability sigh) {
|
||||
void overrun_sigh(Genode::Signal_context_capability sigh) override {
|
||||
call<Rpc_overrun_sigh>(sigh); }
|
||||
|
||||
Genode::Signal_context_capability data_avail_sigh() {
|
||||
Genode::Signal_context_capability data_avail_sigh() override {
|
||||
return Genode::Signal_context_capability(); }
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ class Audio_in::Session_client : public Genode::Rpc_client<Session>
|
||||
** Session interface **
|
||||
***********************/
|
||||
|
||||
void start()
|
||||
void start() override
|
||||
{
|
||||
call<Rpc_start>();
|
||||
|
||||
@ -99,7 +99,7 @@ class Audio_in::Session_client : public Genode::Rpc_client<Session>
|
||||
stream()->reset();
|
||||
}
|
||||
|
||||
void stop() { call<Rpc_stop>(); }
|
||||
void stop() override { call<Rpc_stop>(); }
|
||||
|
||||
|
||||
/**********************************
|
||||
|
Loading…
Reference in New Issue
Block a user