[0.1.2] fixed sound issues + slowness of SSE image renderer, removed some .bat files, changed some line endings, and of course changed the music
This commit is contained in:
parent
d84c2edf16
commit
ed4a8fc87b
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export ZIPNAME=nubdist/iceball-0.1.1.zip
|
export ZIPNAME=nubdist/iceball-0.1.2.zip
|
||||||
|
|
||||||
#zip -r $ZIPNAME *.dll *.exe *.txt *.bat docs/ \
|
#zip -r $ZIPNAME *.dll *.exe *.txt *.bat docs/ \
|
||||||
# pkg/base/*.lua \
|
# pkg/base/*.lua \
|
||||||
@ -13,7 +13,7 @@ export ZIPNAME=nubdist/iceball-0.1.1.zip
|
|||||||
# dlcache/info.txt clsave/info.txt svsave/info.txt \
|
# dlcache/info.txt clsave/info.txt svsave/info.txt \
|
||||||
# clsave/config.json clsave/pub/user.json
|
# clsave/config.json clsave/pub/user.json
|
||||||
|
|
||||||
zip -r $ZIPNAME *.dll *.exe *.txt opencmd.bat connect-*.bat docs/ \
|
zip -r $ZIPNAME *.dll *.exe *.txt opencmd.bat docs/ \
|
||||||
pmfedit.bat mapedit.bat \
|
pmfedit.bat mapedit.bat \
|
||||||
dlcache/info.txt clsave/info.txt \
|
dlcache/info.txt clsave/info.txt \
|
||||||
clsave/config.json clsave/pub/user.json \
|
clsave/config.json clsave/pub/user.json \
|
||||||
@ -21,8 +21,10 @@ zip -r $ZIPNAME *.dll *.exe *.txt opencmd.bat connect-*.bat docs/ \
|
|||||||
clsave/vol/dummy clsave/base/vol/dummy \
|
clsave/vol/dummy clsave/base/vol/dummy \
|
||||||
pkg/iceball/halp/ \
|
pkg/iceball/halp/ \
|
||||||
pkg/base/ pkg/maps/mesa.vxl pkg/maps/mesa.vxl.tga \
|
pkg/base/ pkg/maps/mesa.vxl pkg/maps/mesa.vxl.tga \
|
||||||
|
pkg/maps/gen_classic.lua.tga \
|
||||||
pkg/iceball/snowtest/ pkg/iceball/hack_console/ \
|
pkg/iceball/snowtest/ pkg/iceball/hack_console/ \
|
||||||
pkg/iceball/pmfedit/ pkg/iceball/mapedit/ \
|
pkg/iceball/pmfedit/ pkg/iceball/mapedit/ \
|
||||||
|
pkg/iceball/sprinting/ pkg/iceball/deucenamegen/ \
|
||||||
svsave/info.txt \
|
svsave/info.txt \
|
||||||
svsave/pub/server.json svsave/pub/mods.json svsave/base/vol/dummy svsave/vol/dummy \
|
svsave/pub/server.json svsave/pub/mods.json svsave/base/vol/dummy svsave/vol/dummy \
|
||||||
src/ include/ Makefile* CMakeLists.txt main.make \
|
src/ include/ Makefile* CMakeLists.txt main.make \
|
||||||
|
@ -17,12 +17,12 @@
|
|||||||
(replace '' with the double-quotes used to contain this comment)
|
(replace '' with the double-quotes used to contain this comment)
|
||||||
|
|
||||||
You will need to also set ''kick_on_join'' to false,
|
You will need to also set ''kick_on_join'' to false,
|
||||||
or else you will not be able to join any servers!
|
or else you will not be able to join any servers that actually check this flag!
|
||||||
|
|
||||||
For more info on the syntax itself, see http://json.org/
|
For more info on the syntax itself, see http://json.org/
|
||||||
",
|
",
|
||||||
|
|
||||||
"name": null,
|
"name": "",
|
||||||
"kick_on_join": true,
|
"kick_on_join": true,
|
||||||
"sensitivity": 1.0,
|
"sensitivity": 1.0,
|
||||||
"hold_to_zoom": false,
|
"hold_to_zoom": false,
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
@echo off
|
|
||||||
iceball-gl -c play.iceballga.me 20737
|
|
||||||
|
|
@ -45,7 +45,7 @@ def calc_ib_version(w,x,y,a,z):
|
|||||||
|
|
||||||
HB_LIFETIME = 120
|
HB_LIFETIME = 120
|
||||||
HB_VERSION = 2
|
HB_VERSION = 2
|
||||||
IB_VERSION_CMP = (0,1,1,0,0)
|
IB_VERSION_CMP = (0,1,2,0,0)
|
||||||
IB_VERSION = calc_ib_version(*IB_VERSION_CMP)
|
IB_VERSION = calc_ib_version(*IB_VERSION_CMP)
|
||||||
|
|
||||||
# ignore "Z" version
|
# ignore "Z" version
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
#define VERSION_W 0
|
#define VERSION_W 0
|
||||||
#define VERSION_X 1
|
#define VERSION_X 1
|
||||||
#define VERSION_Y 1
|
#define VERSION_Y 2
|
||||||
#define VERSION_A 0
|
#define VERSION_A 0
|
||||||
#define VERSION_Z 9
|
#define VERSION_Z 0
|
||||||
// Remember to bump "Z" basically every time you change the engine!
|
// Remember to bump "Z" basically every time you change the engine!
|
||||||
// Remember to bump the version in Lua too!
|
// Remember to bump the version in Lua too!
|
||||||
// Remember to document API changes in a new version!
|
// Remember to document API changes in a new version!
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
@echo off
|
|
||||||
iceball-gl -c localhost 20737
|
|
||||||
pause
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
@echo off
|
|
||||||
iceball-gl.exe -d 20737 pkg/base
|
|
||||||
pause
|
|
||||||
|
|
Binary file not shown.
@ -15,8 +15,8 @@
|
|||||||
along with Ice Lua Components. If not, see <http://www.gnu.org/licenses/>.
|
along with Ice Lua Components. If not, see <http://www.gnu.org/licenses/>.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
if common.version.num < 4194304 then
|
if common.version.num < 4259840 then
|
||||||
error("You need Iceball version 0.1 or later to connect to this server.")
|
error("You need Iceball version 0.1.2 or later to connect to this server.")
|
||||||
end
|
end
|
||||||
|
|
||||||
function client.hook_kick(reason)
|
function client.hook_kick(reason)
|
||||||
|
@ -15,10 +15,8 @@
|
|||||||
along with Ice Lua Components. If not, see <http://www.gnu.org/licenses/>.
|
along with Ice Lua Components. If not, see <http://www.gnu.org/licenses/>.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
if common.version.num < 4227072 then
|
if common.version.num < 4259840 then
|
||||||
error("You need Iceball version 0.1.1 or later to run this code.")
|
error("You need Iceball version 0.1.2 or later to run this code.")
|
||||||
-- I know 0.1 can run it at the time of 0.1.1's release,
|
|
||||||
-- but I *do* want the server to stay up to date.
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- UDP port test.
|
-- UDP port test.
|
||||||
|
@ -16,13 +16,14 @@
|
|||||||
]]
|
]]
|
||||||
|
|
||||||
VERSION_ENGINE = {
|
VERSION_ENGINE = {
|
||||||
cmp={0,1,1,0,9},
|
cmp={0,1,2,0,0},
|
||||||
num=4227072+9,
|
num=4259840,
|
||||||
str="0.1.1-9",
|
str="0.1.2",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- 0.1: 4194304
|
-- 0.1: 4194304
|
||||||
-- 0.1.1: 4227072
|
-- 0.1.1: 4227072
|
||||||
|
-- 0.1.2: 4259840
|
||||||
|
|
||||||
VERSION_BUGS = {
|
VERSION_BUGS = {
|
||||||
{intro=nil, fix=1, msg="PMF models have the wrong Z value when close to the screen edges, and can be seen through walls"},
|
{intro=nil, fix=1, msg="PMF models have the wrong Z value when close to the screen edges, and can be seen through walls"},
|
||||||
@ -110,5 +111,6 @@ VERSION_BUGS = {
|
|||||||
{intro=4227072+5, fix=4227072+7, msg="Incompatible semantics for image scaling"},
|
{intro=4227072+5, fix=4227072+7, msg="Incompatible semantics for image scaling"},
|
||||||
{intro=nil, fix=4227072+8, msg="iceball:// URL scheme not supported"},
|
{intro=nil, fix=4227072+8, msg="iceball:// URL scheme not supported"},
|
||||||
{intro=4227072+8, fix=4227072+9, msg="[Windows] iceball:// handler doesn't set current directory correctly"},
|
{intro=4227072+8, fix=4227072+9, msg="[Windows] iceball:// handler doesn't set current directory correctly"},
|
||||||
|
{intro=nil, fix=4259840, msg="Sound broken wrt stereo (only the last sound played is in stereo; the rest uses the left for both channels)"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
74
run-gl.bat
74
run-gl.bat
@ -1,74 +0,0 @@
|
|||||||
@ECHO OFF
|
|
||||||
|
|
||||||
:Menu
|
|
||||||
ECHO ============== Iceball ==============
|
|
||||||
ECHO -------------------------------------
|
|
||||||
ECHO 1. Single-player
|
|
||||||
ECHO 2. Dev server
|
|
||||||
ECHO 3. Lighting test
|
|
||||||
ECHO 4. Snow weather test
|
|
||||||
ECHO 5. Map editor
|
|
||||||
ECHO 6. PMF editor
|
|
||||||
ECHO -------------------------------------
|
|
||||||
ECHO 0. Exit
|
|
||||||
ECHO -------------------------------------
|
|
||||||
ECHO.
|
|
||||||
|
|
||||||
SET INPUT=
|
|
||||||
SET /P INPUT=Please select a number:
|
|
||||||
|
|
||||||
cls
|
|
||||||
IF /I '%INPUT%'=='1' GOTO SinglePlayer
|
|
||||||
IF /I '%INPUT%'=='2' GOTO DevServer
|
|
||||||
IF /I '%INPUT%'=='3' GOTO LightingTest
|
|
||||||
IF /I '%INPUT%'=='4' GOTO SnowTest
|
|
||||||
IF /I '%INPUT%'=='5' GOTO MapEditor
|
|
||||||
IF /I '%INPUT%'=='6' GOTO PMFEditor
|
|
||||||
IF /I '%INPUT%'=='0' EXIT
|
|
||||||
|
|
||||||
ECHO Invalid option
|
|
||||||
pause
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:SinglePlayer
|
|
||||||
ECHO Starting local server...
|
|
||||||
iceball-gl.exe -s 0 pkg/base pkg/maps/mesa.vxl
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:DevServer
|
|
||||||
ECHO Connecting to dev server...
|
|
||||||
iceball-gl.exe -c iceballga.me 20737
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:LightingTest
|
|
||||||
ECHO Starting lighting test...
|
|
||||||
iceball-gl.exe -s 0 pkg/iceball/radtest
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:SnowTest
|
|
||||||
ECHO Starting snow weather test...
|
|
||||||
iceball-gl.exe -s 0 pkg/iceball/snowtest
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:MapEditor
|
|
||||||
ECHO Starting map editor...
|
|
||||||
iceball-gl.exe -s 0 pkg/iceball/mapedit
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:PMFEditor
|
|
||||||
ECHO Starting PMF editor...
|
|
||||||
iceball-gl.exe -s 0 pkg/iceball/pmfedit
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
74
run.bat
74
run.bat
@ -1,74 +0,0 @@
|
|||||||
@ECHO OFF
|
|
||||||
|
|
||||||
:Menu
|
|
||||||
ECHO ============== Iceball ==============
|
|
||||||
ECHO -------------------------------------
|
|
||||||
ECHO 1. Single-player
|
|
||||||
ECHO 2. Dev server
|
|
||||||
ECHO 3. Lighting test
|
|
||||||
ECHO 4. Snow weather test
|
|
||||||
ECHO 5. Map editor
|
|
||||||
ECHO 6. PMF editor
|
|
||||||
ECHO -------------------------------------
|
|
||||||
ECHO 0. Exit
|
|
||||||
ECHO -------------------------------------
|
|
||||||
ECHO.
|
|
||||||
|
|
||||||
SET INPUT=
|
|
||||||
SET /P INPUT=Please select a number:
|
|
||||||
|
|
||||||
cls
|
|
||||||
IF /I '%INPUT%'=='1' GOTO SinglePlayer
|
|
||||||
IF /I '%INPUT%'=='2' GOTO DevServer
|
|
||||||
IF /I '%INPUT%'=='3' GOTO LightingTest
|
|
||||||
IF /I '%INPUT%'=='4' GOTO SnowTest
|
|
||||||
IF /I '%INPUT%'=='5' GOTO MapEditor
|
|
||||||
IF /I '%INPUT%'=='6' GOTO PMFEditor
|
|
||||||
IF /I '%INPUT%'=='0' EXIT
|
|
||||||
|
|
||||||
ECHO Invalid option
|
|
||||||
pause
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:SinglePlayer
|
|
||||||
ECHO Starting local server...
|
|
||||||
iceball.exe -s 0 pkg/base pkg/maps/mesa.vxl
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:DevServer
|
|
||||||
ECHO Connecting to dev server...
|
|
||||||
iceball.exe -c play.iceballga.me 20737
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:LightingTest
|
|
||||||
ECHO Starting lighting test...
|
|
||||||
iceball.exe -s 0 pkg/iceball/radtest
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:SnowTest
|
|
||||||
ECHO Starting snow weather test...
|
|
||||||
iceball.exe -s 0 pkg/iceball/snowtest
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:MapEditor
|
|
||||||
ECHO Starting map editor...
|
|
||||||
iceball.exe -s 0 pkg/iceball/mapedit
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
||||||
|
|
||||||
:PMFEditor
|
|
||||||
ECHO Starting PMF editor...
|
|
||||||
iceball.exe -s 0 pkg/iceball/pmfedit
|
|
||||||
ECHO.
|
|
||||||
cls
|
|
||||||
GOTO Menu
|
|
@ -218,7 +218,7 @@ void render_blit_img_toimg(uint32_t *pixels, int width, int height, int pitch,
|
|||||||
// Assembly/Compiler Coding Rule 76. (M impact, H generality) Align data to
|
// Assembly/Compiler Coding Rule 76. (M impact, H generality) Align data to
|
||||||
// 32-byte boundary when possible. Prefer store alignment over load alignment.
|
// 32-byte boundary when possible. Prefer store alignment over load alignment.
|
||||||
|
|
||||||
if(bw >= 16)
|
if(bw >= 16 && scalex == 1.0f)
|
||||||
{
|
{
|
||||||
const __m128i xmmconst_0 = _mm_setzero_si128();
|
const __m128i xmmconst_0 = _mm_setzero_si128();
|
||||||
const __m128i xmmconst_256 = _mm_set1_epi16(256);
|
const __m128i xmmconst_256 = _mm_set1_epi16(256);
|
||||||
@ -236,15 +236,13 @@ void render_blit_img_toimg(uint32_t *pixels, int width, int height, int pitch,
|
|||||||
for(x = 0; x < bw; x += 8)
|
for(x = 0; x < bw; x += 8)
|
||||||
_mm_prefetch(pd+x, _MM_HINT_T0);
|
_mm_prefetch(pd+x, _MM_HINT_T0);
|
||||||
|
|
||||||
xctr = 0;
|
|
||||||
|
|
||||||
// do the left part first
|
// do the left part first
|
||||||
// TODO: look for a mask instruction
|
// TODO: look for a mask instruction
|
||||||
|
uint32_t *fs = ps;
|
||||||
for(x = 0; x < bw; x++)
|
for(x = 0; x < bw; x++)
|
||||||
{
|
{
|
||||||
uint32_t s = ps[xctr>>16];
|
uint32_t s = *(fs++);
|
||||||
uint32_t d = *pd;
|
uint32_t d = *pd;
|
||||||
xctr += iscalex;
|
|
||||||
|
|
||||||
// apply base color
|
// apply base color
|
||||||
// DANGER! BRACKETITIS!
|
// DANGER! BRACKETITIS!
|
||||||
@ -283,19 +281,8 @@ void render_blit_img_toimg(uint32_t *pixels, int width, int height, int pitch,
|
|||||||
// NOTE: i don't have AVX2 so don't expect an AVX2 version.
|
// NOTE: i don't have AVX2 so don't expect an AVX2 version.
|
||||||
for(; x < bw-4; x+=4)
|
for(; x < bw-4; x+=4)
|
||||||
{
|
{
|
||||||
int nxctr = xctr + iscalex*3;
|
__m128i xmm_src = _mm_loadu_si128((__m128i *)fs);
|
||||||
__m128i xmm_src;
|
fs += 4;
|
||||||
if((nxctr>>16)-(xctr>>16) == 3)
|
|
||||||
{
|
|
||||||
xmm_src = _mm_loadu_si128((__m128i *)&ps[xctr>>16]);
|
|
||||||
} else {
|
|
||||||
xmm_src = _mm_set_epi32(
|
|
||||||
ps[xctr>>16],
|
|
||||||
ps[(xctr+iscalex)>>16],
|
|
||||||
ps[(xctr+2*iscalex)>>16],
|
|
||||||
ps[(xctr+3*iscalex)>>16]);
|
|
||||||
}
|
|
||||||
xctr += iscalex<<2;
|
|
||||||
__m128i xmm_dst = _mm_load_si128((__m128i *)pd);
|
__m128i xmm_dst = _mm_load_si128((__m128i *)pd);
|
||||||
|
|
||||||
// unpack
|
// unpack
|
||||||
@ -387,9 +374,8 @@ void render_blit_img_toimg(uint32_t *pixels, int width, int height, int pitch,
|
|||||||
// finish off with the right part
|
// finish off with the right part
|
||||||
for(; x < bw; x++)
|
for(; x < bw; x++)
|
||||||
{
|
{
|
||||||
uint32_t s = ps[xctr>>16];
|
uint32_t s = *(fs++);
|
||||||
uint32_t d = *pd;
|
uint32_t d = *pd;
|
||||||
xctr += iscalex;
|
|
||||||
|
|
||||||
// apply base color
|
// apply base color
|
||||||
// DANGER! BRACKETITIS!
|
// DANGER! BRACKETITIS!
|
||||||
|
@ -103,7 +103,7 @@ void render_blit_img(uint32_t *pixels, int width, int height, int pitch,
|
|||||||
// Assembly/Compiler Coding Rule 76. (M impact, H generality) Align data to
|
// Assembly/Compiler Coding Rule 76. (M impact, H generality) Align data to
|
||||||
// 32-byte boundary when possible. Prefer store alignment over load alignment.
|
// 32-byte boundary when possible. Prefer store alignment over load alignment.
|
||||||
|
|
||||||
if(bw >= 16)
|
if(bw >= 16 && scalex == 1.0f)
|
||||||
{
|
{
|
||||||
const __m128i xmmconst_0 = _mm_setzero_si128();
|
const __m128i xmmconst_0 = _mm_setzero_si128();
|
||||||
const __m128i xmmconst_256 = _mm_set1_epi16(256);
|
const __m128i xmmconst_256 = _mm_set1_epi16(256);
|
||||||
@ -121,15 +121,13 @@ void render_blit_img(uint32_t *pixels, int width, int height, int pitch,
|
|||||||
for(x = 0; x < bw; x += 8)
|
for(x = 0; x < bw; x += 8)
|
||||||
_mm_prefetch(pd+x, _MM_HINT_T0);
|
_mm_prefetch(pd+x, _MM_HINT_T0);
|
||||||
|
|
||||||
xctr = 0x8000;
|
|
||||||
|
|
||||||
// do the left part first
|
// do the left part first
|
||||||
// TODO: look for a mask instruction
|
// TODO: look for a mask instruction
|
||||||
|
uint32_t *fs = ps;
|
||||||
for(x = 0; x < bw; x++)
|
for(x = 0; x < bw; x++)
|
||||||
{
|
{
|
||||||
uint32_t s = ps[xctr>>16];
|
uint32_t s = *(fs++);
|
||||||
uint32_t d = *pd;
|
uint32_t d = *pd;
|
||||||
xctr += iscalex;
|
|
||||||
|
|
||||||
// apply base color
|
// apply base color
|
||||||
// DANGER! BRACKETITIS!
|
// DANGER! BRACKETITIS!
|
||||||
@ -168,19 +166,8 @@ void render_blit_img(uint32_t *pixels, int width, int height, int pitch,
|
|||||||
// NOTE: i don't have AVX2 so don't expect an AVX2 version.
|
// NOTE: i don't have AVX2 so don't expect an AVX2 version.
|
||||||
for(; x < bw-4; x+=4)
|
for(; x < bw-4; x+=4)
|
||||||
{
|
{
|
||||||
int nxctr = xctr + iscalex*3;
|
__m128i xmm_src = _mm_loadu_si128((__m128i *)fs);
|
||||||
__m128i xmm_src;
|
fs += 4;
|
||||||
if((nxctr>>16)-(xctr>>16) == 3)
|
|
||||||
{
|
|
||||||
xmm_src = _mm_loadu_si128((__m128i *)&ps[xctr>>16]);
|
|
||||||
} else {
|
|
||||||
xmm_src = _mm_set_epi32(
|
|
||||||
ps[xctr>>16],
|
|
||||||
ps[(xctr+iscalex)>>16],
|
|
||||||
ps[(xctr+2*iscalex)>>16],
|
|
||||||
ps[(xctr+3*iscalex)>>16]);
|
|
||||||
}
|
|
||||||
xctr += iscalex<<2;
|
|
||||||
__m128i xmm_dst = _mm_load_si128((__m128i *)pd);
|
__m128i xmm_dst = _mm_load_si128((__m128i *)pd);
|
||||||
|
|
||||||
// unpack
|
// unpack
|
||||||
@ -272,9 +259,8 @@ void render_blit_img(uint32_t *pixels, int width, int height, int pitch,
|
|||||||
// finish off with the right part
|
// finish off with the right part
|
||||||
for(; x < bw; x++)
|
for(; x < bw; x++)
|
||||||
{
|
{
|
||||||
uint32_t s = ps[xctr>>16];
|
uint32_t s = *(fs++);
|
||||||
uint32_t d = *pd;
|
uint32_t d = *pd;
|
||||||
xctr += iscalex;
|
|
||||||
|
|
||||||
// apply base color
|
// apply base color
|
||||||
// DANGER! BRACKETITIS!
|
// DANGER! BRACKETITIS!
|
||||||
|
@ -178,7 +178,7 @@ void wav_fn_mixer_s16he_stereo(void *buf, int len)
|
|||||||
|
|
||||||
int16_t d = data[offs];
|
int16_t d = data[offs];
|
||||||
int32_t v0 = (int32_t)(*v) + (int32_t)(vol[0]*d+0.5f);
|
int32_t v0 = (int32_t)(*v) + (int32_t)(vol[0]*d+0.5f);
|
||||||
int32_t v1 = (int32_t)(*v) + (int32_t)(vol[1]*d+0.5f);
|
int32_t v1 = (int32_t)(*(v+1)) + (int32_t)(vol[1]*d+0.5f);
|
||||||
if(v0 > 0x7FFF) v0 = 0x7FFF;
|
if(v0 > 0x7FFF) v0 = 0x7FFF;
|
||||||
if(v0 < -0x7FFF) v0 = -0x7FFF;
|
if(v0 < -0x7FFF) v0 = -0x7FFF;
|
||||||
if(v1 > 0x7FFF) v1 = 0x7FFF;
|
if(v1 > 0x7FFF) v1 = 0x7FFF;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
export ZIPNAME=nubdist/iceball-indev-0.1.1-9.zip
|
export ZIPNAME=nubdist/iceball-indev-0.1.1-9.zip
|
||||||
|
|
||||||
zip -r $ZIPNAME *.dll *.exe *.txt opencmd.bat connect-*.bat docs/ \
|
zip -r $ZIPNAME *.dll *.exe *.txt opencmd.bat docs/ \
|
||||||
dlcache/info.txt clsave/info.txt \
|
dlcache/info.txt clsave/info.txt \
|
||||||
clsave/config.json clsave/pub/user.json clsave/pub/controls.json \
|
clsave/config.json clsave/pub/user.json clsave/pub/controls.json \
|
||||||
"DOUBLE CLICK ON THIS FILE TO GET THE MASTER SERVER LIST WORKING PROPERLY ON WINDOWS I MEAN IT.exe" \
|
"DOUBLE CLICK ON THIS FILE TO GET THE MASTER SERVER LIST WORKING PROPERLY ON WINDOWS I MEAN IT.exe" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user