2012-10-23 15:21:43 +02:00
|
|
|
/*
|
|
|
|
* \brief Audio handling
|
|
|
|
* \author Sebastian Sumpf
|
|
|
|
* \date 2012-11-20
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 21:44:47 +01:00
|
|
|
* Copyright (C) 2012-2013 Genode Labs GmbH
|
2012-10-23 15:21:43 +02:00
|
|
|
*
|
|
|
|
* 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_H_
|
|
|
|
#define _INCLUDE__AUDIO_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize audio if device is present
|
|
|
|
*/
|
|
|
|
int audio_init();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Play data of size
|
|
|
|
*/
|
2012-12-20 17:34:33 +01:00
|
|
|
int audio_play(short *data, unsigned size);
|
2012-10-23 15:21:43 +02:00
|
|
|
|
|
|
|
#endif /* _INCLUDE__AUDIO_H_ */
|