Other Sound Channel Functions

Other Sound Channel Functions — Miscellaneous functions for sound channels

Functions

Includes

#include <libchimara/glk.h>

Description

This section includes functions for sound channels that don't fit anywhere else.

Functions

glk_schannel_iterate ()

schanid_t
glk_schannel_iterate (schanid_t chan,
                      glui32 *rockptr);

This function can be used to iterate through the list of all open channels. See Iterating through Opaque Objects.

As that section describes, the order in which channels are returned is arbitrary.

Parameters

chan

A sound channel, or NULL.

 

rockptr

Return location for the next sound channel's rock, or NULL.

 

Returns

the next sound channel, or NULL if there are no more.


glk_schannel_get_rock ()

glui32
glk_schannel_get_rock (schanid_t chan);

Retrieves the channel's rock value. See Rocks.

Parameters

chan

A sound channel.

 

Returns

A rock value.