aboutsummaryrefslogtreecommitdiffstats
path: root/src/snd_dice.h
blob: d21f33b2f8225c91dd256cdc1ca88843318f95f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef __ALSA_HINAWA_SND_DICE_H__
#define __ALSA_HINAWA_SND_DICE_H__

#include <hinawa.h>

G_BEGIN_DECLS

#define HINAWA_TYPE_SND_DICE	(hinawa_snd_dice_get_type())

G_DECLARE_DERIVABLE_TYPE(HinawaSndDice, hinawa_snd_dice, HINAWA, SND_DICE, HinawaSndUnit);

#define HINAWA_SND_DICE_ERROR	hinawa_snd_dice_error_quark()

GQuark hinawa_snd_dice_error_quark();

struct _HinawaSndDiceClass {
	HinawaSndUnitClass parent_class;

	/**
	 * HinawaSndDiceClass::notified:
	 * @self: A [class@SndDice]
	 * @message: A notification message
	 *
	 * Class closure for the [signal@SndDice::notified].
	 *
	 * Since: 1.2
	 * Deprecated: 2.5. Use implementation of [class@Hitaki.SndDice] for
	 *	       [vfunc@Hitaki.QuadletNotification.notified] instead.
	 */
	void (*notified)(HinawaSndDice *self, guint message);
};

HinawaSndDice *hinawa_snd_dice_new(void);

void hinawa_snd_dice_open(HinawaSndDice *self, gchar *path, GError **error);

void hinawa_snd_dice_transaction(HinawaSndDice *self, guint64 addr,
			         const guint32 *frame, gsize frame_count,
				 guint32 bit_flag, GError **error);

G_END_DECLS

#endif