Bearbeiten von „RoarAudio/Programmieren/Stream“
Aus UUGRN
Warnung: Du bist nicht angemeldet. Deine IP-Adresse wird bei Bearbeitungen öffentlich sichtbar. Melde dich an oder erstelle ein Benutzerkonto, damit Bearbeitungen deinem Benutzernamen zugeordnet werden.
Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und speichere dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.
Aktuelle Version | Dein Text | ||
Zeile 4: | Zeile 4: | ||
int roar_stream_new_empty(struct roar_stream * s); | int roar_stream_new_empty(struct roar_stream * s); | ||
int roar_stream_new_by_id(struct roar_stream * s, int id); | int roar_stream_new_by_id(struct roar_stream * s, int id); | ||
− | int roar_stream_new (struct roar_stream * s, | + | int roar_stream_new (struct roar_stream * s, unsigned int rate, unsigned int channels, unsigned int bits, unsigned int codec); |
− | |||
− | |||
Diese Funktionen erzeugen ein Stream Objekt anhand der ihnen zur Verfügung gestellten Daten. ''roar_stream_new_by_id()'' ist vor allem zu verwenden um aus einer vorliegenden Stream ID ein Stream Objekt zu generieren um es für spätere API Call zus verwenden. | Diese Funktionen erzeugen ein Stream Objekt anhand der ihnen zur Verfügung gestellten Daten. ''roar_stream_new_by_id()'' ist vor allem zu verwenden um aus einer vorliegenden Stream ID ein Stream Objekt zu generieren um es für spätere API Call zus verwenden. | ||
+ | |||
int roar_stream_set_rel_id(struct roar_stream * s, int id); | int roar_stream_set_rel_id(struct roar_stream * s, int id); | ||
Zeile 28: | Zeile 27: | ||
== Daten über Stream mit Server austauschen == | == Daten über Stream mit Server austauschen == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
int roar_stream_get_info (struct roar_connection * con, struct roar_stream * s, struct roar_stream_info * info); | int roar_stream_get_info (struct roar_connection * con, struct roar_stream * s, struct roar_stream_info * info); | ||
− | |||
− | |||
− | |||
int roar_stream_get_name (struct roar_connection * con, struct roar_stream * s, char * name, size_t len); | int roar_stream_get_name (struct roar_connection * con, struct roar_stream * s, char * name, size_t len); | ||
− | |||
− | |||
int roar_stream_set_flags (struct roar_connection * con, struct roar_stream * s, int flags, int reset); | int roar_stream_set_flags (struct roar_connection * con, struct roar_stream * s, int flags, int reset); | ||
− | + | roar_list_streams(c,i,m) /* macro */ | |
− | + | int roar_get_stream (struct roar_connection * con, struct roar_stream * stream, int id); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Mixer == | == Mixer == | ||
int roar_set_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels); | int roar_set_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels); | ||
− | |||
− | |||
− | |||
int roar_get_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels); | int roar_get_vol (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels); | ||
− | |||
− | |||
== Streams erzeugen, verbinden und manipulieren == | == Streams erzeugen, verbinden und manipulieren == | ||
int roar_stream_attach_simple (struct roar_connection * con, struct roar_stream * s, int client); | int roar_stream_attach_simple (struct roar_connection * con, struct roar_stream * s, int client); | ||
− | + | ||
− | |||
− | |||
int roar_kick (struct roar_connection * con, int type, int id); | int roar_kick (struct roar_connection * con, int type, int id); | ||
− | |||
− | |||
− | |||
− | |||
== Siehe Auch == | == Siehe Auch == |