mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 11:56:57 +01:00
Little cleanups in callbacks...
This commit is contained in:
parent
742b861484
commit
171a891b43
1 changed files with 4 additions and 4 deletions
|
@ -596,6 +596,7 @@ mixer_init (void)
|
||||||
static void
|
static void
|
||||||
mixer_iteration_update(void *dummy, int channel)
|
mixer_iteration_update(void *dummy, int channel)
|
||||||
{
|
{
|
||||||
|
fprintf( stderr, "*** channel = %i\n", channel );
|
||||||
mixer_update_cbar(channel);
|
mixer_update_cbar(channel);
|
||||||
refresh ();
|
refresh ();
|
||||||
}
|
}
|
||||||
|
@ -603,15 +604,14 @@ mixer_iteration_update(void *dummy, int channel)
|
||||||
static int
|
static int
|
||||||
mixer_iteration (void)
|
mixer_iteration (void)
|
||||||
{
|
{
|
||||||
static snd_mixer_callbacks_t callbacks = {
|
snd_mixer_callbacks_t callbacks;
|
||||||
NULL,
|
|
||||||
mixer_iteration_update,
|
|
||||||
};
|
|
||||||
int key;
|
int key;
|
||||||
int finished = 0;
|
int finished = 0;
|
||||||
int mixer_fd;
|
int mixer_fd;
|
||||||
fd_set in;
|
fd_set in;
|
||||||
|
|
||||||
|
bzero( &callbacks, sizeof( callbacks ) );
|
||||||
|
callbacks.channel_was_changed = mixer_iteration_update;
|
||||||
mixer_fd = snd_mixer_file_descriptor( mixer_handle );
|
mixer_fd = snd_mixer_file_descriptor( mixer_handle );
|
||||||
while ( 1 ) {
|
while ( 1 ) {
|
||||||
FD_ZERO(&in);
|
FD_ZERO(&in);
|
||||||
|
|
Loading…
Reference in a new issue