Changeset 4765:c9adc34b0b5b in roaraudio
- Timestamp:
- 02/15/11 17:33:38 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/codecfilter_vorbis.c
r4708 r4765 87 87 *inst = (CODECFILTER_USERDATA_T) self; 88 88 89 #if ROAR_CODEC_DEFAULT == ROAR_CODEC_PCM_S_LE 90 self->bigendianp = 0; 89 91 s->info.codec = ROAR_CODEC_DEFAULT; 92 #else 93 self->bigendianp = 1; 94 s->info.codec = ROAR_CODEC_PCM_S_BE; // force because ROAR_CODEC_DEFAULT can be something non-BE, too. 95 #endif 96 90 97 s->info.bits = 16; 91 98 … … 251 258 252 259 while (todo) { 253 r = ov_read(&(self->vf), buf+done, todo, 0, 2, 1, &(self->current_section));260 r = ov_read(&(self->vf), buf+done, todo, self->bigendianp, 2, 1, &(self->current_section)); 254 261 if ( r == OV_HOLE ) { 255 262 ROAR_DBG("cf_vorbis_read(*): Hole in stream"); … … 291 298 s->info.rate = vi->rate; 292 299 s->info.bits = 16; 300 #if ROAR_CODEC_DEFAULT == ROAR_CODEC_PCM_S_LE 293 301 s->info.codec = ROAR_CODEC_DEFAULT; 302 #else 303 s->info.codec = ROAR_CODEC_PCM_S_BE; 304 #endif 294 305 295 306 stream_meta_clear(s->id); -
roard/include/codecfilter_vorbis.h
r4708 r4765 46 46 OggVorbis_File vf; 47 47 int got_it_running; 48 int bigendianp; 48 49 #ifdef ROAR_HAVE_LIBVORBISENC 49 50 int encoding;
Note: See TracChangeset
for help on using the changeset viewer.