Changeset 5463:f11febcac1de in roaraudio
- Timestamp:
- 03/31/12 00:26:21 (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/proto.c
r5381 r5463 96 96 *(uint32_t*)(buf+4) = ROAR_HOST2NET32(mes->flags); 97 97 if ( mes->flags & ROAR_MF_LSPOS ) { 98 *(uint64_t*)(buf+8) = ROAR_HOST2NET 16(mes->pos64);98 *(uint64_t*)(buf+8) = ROAR_HOST2NET64(mes->pos64); 99 99 bufptr = buf+16; 100 100 headerlen += 4; 101 101 } else { 102 *(uint32_t*)(buf+8) = ROAR_HOST2NET 16(mes->pos);102 *(uint32_t*)(buf+8) = ROAR_HOST2NET32(mes->pos); 103 103 bufptr = buf+12; 104 104 } … … 192 192 mes->stream = ROAR_NET2HOST16(*(uint16_t*)(buf+2)); 193 193 mes->pos = ROAR_NET2HOST32(*(uint32_t*)(buf+4)); 194 mes->pos64 = mes->pos; 194 195 mes->datalen = ROAR_NET2HOST16(*(uint16_t*)(buf+8)); 195 196 break; … … 224 225 if ( mes->flags & ROAR_MF_LSPOS ) { 225 226 mes->pos64 = ROAR_NET2HOST32(*(uint64_t*)(buf+8)); 227 mes->pos = mes->pos64 & (uint64_t)0x0FFFFFFFFLLU; 226 228 bufptr = buf+16; 227 229 } else { 228 230 mes->pos = ROAR_NET2HOST32(*(uint32_t*)(buf+8)); 231 mes->pos64 = mes->pos; 229 232 bufptr = buf+12; 230 233 } -
libroar/stream.c
r5381 r5463 765 765 #endif 766 766 767 m->pos = s->pos; 767 m->pos = s->pos; 768 m->pos64 = s->pos; 768 769 769 770 return 0; … … 783 784 } 784 785 785 s->pos = m->pos; 786 if ( m->flags & ROAR_MF_LSPOS ) { 787 s->pos = m->pos64; 788 } else { 789 s->pos = m->pos; 790 } 786 791 787 792 data = (uint32_t*) m->data;
Note: See TracChangeset
for help on using the changeset viewer.