diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-02 19:48:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-02 19:48:12 +0000 |
commit | e4d1ce975f6bbb5c89904ad9c174f1e29b49a76b (patch) | |
tree | 70d3e98b1386acc4c218c973b44d62691fd49f1f /src/include/gnunet_speaker_lib.h | |
parent | e4eafbbef9d494182ca863f7ee03095a235bdf71 (diff) | |
download | gnunet-e4d1ce975f6bbb5c89904ad9c174f1e29b49a76b.tar.gz gnunet-e4d1ce975f6bbb5c89904ad9c174f1e29b49a76b.zip |
-implement speaker library
Diffstat (limited to 'src/include/gnunet_speaker_lib.h')
-rw-r--r-- | src/include/gnunet_speaker_lib.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/gnunet_speaker_lib.h b/src/include/gnunet_speaker_lib.h index 7a6eb028b..bdb91d6a1 100644 --- a/src/include/gnunet_speaker_lib.h +++ b/src/include/gnunet_speaker_lib.h | |||
@@ -36,10 +36,12 @@ extern "C" | |||
36 | #endif | 36 | #endif |
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | #include "gnunet_util_lib.h" | ||
40 | |||
39 | /** | 41 | /** |
40 | * Function that enables a speaker. | 42 | * Function that enables a speaker. |
41 | * | 43 | * |
42 | * @param cls clsoure | 44 | * @param cls closure |
43 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error | 45 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
44 | */ | 46 | */ |
45 | typedef int (*GNUNET_SPEAKER_EnableCallback)(void *cls); | 47 | typedef int (*GNUNET_SPEAKER_EnableCallback)(void *cls); |
@@ -47,21 +49,21 @@ typedef int (*GNUNET_SPEAKER_EnableCallback)(void *cls); | |||
47 | /** | 49 | /** |
48 | * Function that disables a speaker. | 50 | * Function that disables a speaker. |
49 | * | 51 | * |
50 | * @param cls clsoure | 52 | * @param cls closure |
51 | */ | 53 | */ |
52 | typedef void (*GNUNET_SPEAKER_DisableCallback)(void *cls); | 54 | typedef void (*GNUNET_SPEAKER_DisableCallback)(void *cls); |
53 | 55 | ||
54 | /** | 56 | /** |
55 | * Function to destroy a speaker. | 57 | * Function to destroy a speaker. |
56 | * | 58 | * |
57 | * @param cls clsoure | 59 | * @param cls closure |
58 | */ | 60 | */ |
59 | typedef void (*GNUNET_SPEAKER_DestroyCallback)(void *cls); | 61 | typedef void (*GNUNET_SPEAKER_DestroyCallback)(void *cls); |
60 | 62 | ||
61 | /** | 63 | /** |
62 | * Function to cause a speaker to play audio data. | 64 | * Function to cause a speaker to play audio data. |
63 | * | 65 | * |
64 | * @param cls clsoure | 66 | * @param cls closure |
65 | * @param data_size number of bytes in @a data | 67 | * @param data_size number of bytes in @a data |
66 | * @param data audio data to play, format is | 68 | * @param data audio data to play, format is |
67 | * opaque to the API but should be OPUS. | 69 | * opaque to the API but should be OPUS. |