Changeset 1813:e70cce63168f in roaraudio
- Timestamp:
- 05/22/09 19:35:49 (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/stream.h
r1807 r1813 83 83 84 84 int roar_stream_new (struct roar_stream * s, unsigned int rate, unsigned int channels, unsigned int bits, unsigned int codec); 85 86 int roar_stream_set_rel_id(struct roar_stream * s, int id); 87 int roar_stream_get_rel_id(struct roar_stream * s); 88 85 89 int roar_stream_new_by_id(struct roar_stream * s, int id); 86 90 int roar_stream_new_empty(struct roar_stream * s); -
libroar/stream.c
r1807 r1813 64 64 unsigned int channels, unsigned int bits, unsigned int codec) { 65 65 66 if ( s == NULL ) 67 return -1; 66 68 67 69 s->fh = -1; 68 70 s->id = -1; 69 s->pos = 0;71 s->pos = 0; 70 72 s->pos_rel_id = -1; 71 73 … … 89 91 90 92 return 0; 93 } 94 95 int roar_stream_set_rel_id(struct roar_stream * s, int id) { 96 if ( s == NULL ) 97 return -1; 98 99 s->pos_rel_id = id; 100 101 return 0; 102 } 103 104 int roar_stream_get_rel_id(struct roar_stream * s) { 105 if ( s == NULL ) 106 return -1; 107 108 return s->pos_rel_id; 91 109 } 92 110
Note: See TracChangeset
for help on using the changeset viewer.