blob: 353b28f1c7342dc63bc17ee34ecaf61a36af529a [file] [log] [blame]
/*
* Copyright 2013 Google Inc. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*/
#ifndef __DRIVERS_SOUND_SOUND_H__
#define __DRIVERS_SOUND_SOUND_H__
#include <stdint.h>
typedef struct SoundOps
{
int (*start)(struct SoundOps *me, uint32_t frequency);
int (*stop)(struct SoundOps *me);
int (*play)(struct SoundOps *me, uint32_t msec, uint32_t frequency);
} SoundOps;
void sound_set_ops(SoundOps *ops);
int sound_start(uint32_t frequency);
int sound_stop(void);
int sound_play(uint32_t msec, uint32_t frequency);
#endif /* __DRIVERS_SOUND_SOUND_H__ */