mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 01:11:06 +00:00
41 lines
905 B
C
41 lines
905 B
C
|
/*
|
||
|
* \brief Audio library interface
|
||
|
* \author Josef Soentgen
|
||
|
* \date 2014-12-27
|
||
|
*
|
||
|
* This header declares the private Audio namespace. It contains
|
||
|
* functions called by the driver frontend that are implemented
|
||
|
* by the driver library.
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* Copyright (C) 2014 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 _AUDIO__AUDIO_H_
|
||
|
#define _AUDIO__AUDIO_H_
|
||
|
|
||
|
#include <os/server.h>
|
||
|
|
||
|
/*****************************
|
||
|
** private Audio namespace **
|
||
|
*****************************/
|
||
|
|
||
|
namespace Audio {
|
||
|
|
||
|
enum Channel_number { LEFT, RIGHT, MAX_CHANNELS, INVALID = MAX_CHANNELS };
|
||
|
|
||
|
void init_driver(Server::Entrypoint &ep);
|
||
|
|
||
|
bool driver_active();
|
||
|
|
||
|
void dma_notifier(Genode::Signal_context_capability cap);
|
||
|
|
||
|
int play(short *data, Genode::size_t size);
|
||
|
}
|
||
|
|
||
|
#endif /* _AUDIO__AUDIO_H_ */
|