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 1: | Zeile 1: | ||
Hier soll kurz anhand der dazu nötigen Funktionen beschrieben werden wie ein Klient Streams generell Manage gen kann. | Hier soll kurz anhand der dazu nötigen Funktionen beschrieben werden wie ein Klient Streams generell Manage gen kann. | ||
− | == Arbeiten mit Stream Objekten == | + | == Arbeiten mit Stream Objekten === |
− | + | int roar_stream_new (struct roar_stream * s, unsigned int rate, unsigned int channels, unsigned int bits, unsigned int codec); | |
− | + | ||
− | int roar_stream_new (struct roar_stream * s, | ||
− | |||
− | |||
− | |||
− | |||
− | |||
int roar_stream_set_rel_id(struct roar_stream * s, int id); | int roar_stream_set_rel_id(struct roar_stream * s, int id); | ||
int roar_stream_get_rel_id(struct roar_stream * s); | int roar_stream_get_rel_id(struct roar_stream * s); | ||
− | + | ||
− | + | int roar_stream_new_by_id(struct roar_stream * s, int id); | |
− | + | int roar_stream_new_empty(struct roar_stream * s); | |
+ | |||
int roar_stream_set_id (struct roar_stream * s, int id); | int roar_stream_set_id (struct roar_stream * s, int id); | ||
int roar_stream_get_id (struct roar_stream * s); | int roar_stream_get_id (struct roar_stream * s); | ||
− | + | ||
− | + | int roar_stream_set_fh (struct roar_stream * s, int fh); | |
− | + | int roar_stream_get_fh (struct roar_stream * s); | |
+ | |||
int roar_stream_set_dir (struct roar_stream * s, int dir); | int roar_stream_set_dir (struct roar_stream * s, int dir); | ||
int roar_stream_get_dir (struct roar_stream * s); | int roar_stream_get_dir (struct roar_stream * s); | ||
− | |||
− | |||
− | |||
− | |||
== 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 == |