mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Korrigiere Endianism im Vorbis-Code
This commit is contained in:
parent
4b6c561acc
commit
f5f5c0d2ca
1 changed files with 4 additions and 4 deletions
|
@ -644,9 +644,9 @@ S_RawSamplesVol ( int samples, int rate, int width, int channels, byte *data, fl
|
||||||
dst = s_rawend & ( MAX_RAW_SAMPLES - 1 );
|
dst = s_rawend & ( MAX_RAW_SAMPLES - 1 );
|
||||||
s_rawend++;
|
s_rawend++;
|
||||||
s_rawsamples [ dst ].left =
|
s_rawsamples [ dst ].left =
|
||||||
(int) ( volume * LittleShort( ( (short *) data ) [ src * 2 ] ) ) << 8;
|
(int) ( volume * ( (short *) data ) [ src * 2 ] ) << 8;
|
||||||
s_rawsamples [ dst ].right =
|
s_rawsamples [ dst ].right =
|
||||||
(int) ( volume * LittleShort( ( (short *) data ) [ src * 2 + 1 ] ) ) << 8;
|
(int) ( volume * ( (short *) data ) [ src * 2 + 1 ] ) << 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( ( channels == 1 ) && ( width == 2 ) )
|
else if ( ( channels == 1 ) && ( width == 2 ) )
|
||||||
|
@ -663,9 +663,9 @@ S_RawSamplesVol ( int samples, int rate, int width, int channels, byte *data, fl
|
||||||
dst = s_rawend & ( MAX_RAW_SAMPLES - 1 );
|
dst = s_rawend & ( MAX_RAW_SAMPLES - 1 );
|
||||||
s_rawend++;
|
s_rawend++;
|
||||||
s_rawsamples [ dst ].left =
|
s_rawsamples [ dst ].left =
|
||||||
(int) ( volume * LittleShort( ( (short *) data ) [ src ] ) ) << 8;
|
(int) ( volume * ( (short *) data ) [ src ] ) << 8;
|
||||||
s_rawsamples [ dst ].right =
|
s_rawsamples [ dst ].right =
|
||||||
(int) ( volume * LittleShort( ( (short *) data ) [ src ] ) ) << 8;
|
(int) ( volume * ( (short *) data ) [ src ] ) << 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( ( channels == 2 ) && ( width == 1 ) )
|
else if ( ( channels == 2 ) && ( width == 1 ) )
|
||||||
|
|
Loading…
Reference in a new issue