Changeset 871:1f9e7d2c2dcc in roaraudio


Ignore:
Timestamp:
10/01/08 16:11:18 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use always use ROAR_CODEC_NATIVE_ENDIAN on 8 bit streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/convert.c

    r869 r871  
    336336 void * nin = in; 
    337337 
    338  if ( bits == 8 || bits == 16 ) { 
     338 if ( bits == 8 ) { 
     339  inbo = outbo = ROAR_CODEC_NATIVE_ENDIAN; 
     340 
     341 } else if ( bits == 16 ) { 
    339342  if ( inbo  == ROAR_CODEC_PDP ) 
    340343   inbo  = ROAR_CODEC_LE; 
     
    347350 
    348351 if ( inbo != outbo ) { 
    349   if ( bits != 8 ) { // there is no need to talk about eddines on 8 bit data streams 
    350352   if ( bits == 16 ) { 
    351353    // in this case we can only have LE vs. BE, so, only need to swap: 
     
    369371    return -1; 
    370372   } 
    371   } 
    372373 } 
    373374 
Note: See TracChangeset for help on using the changeset viewer.