nokotan / dxlibforhtml5 Goto Github PK
View Code? Open in Web Editor NEWDXライブラリ HTML5版 (非公式プロジェクト)
Home Page: https://dxlib.kamenokosoft.com
DXライブラリ HTML5版 (非公式プロジェクト)
Home Page: https://dxlib.kamenokosoft.com
jpegファイルにおいてCreateGraphFromMem関数が正常に読み込まない動作をするようです。(-1を返します)
最初、JavaScript側の処理かと思いバイナリを検証した結果C++側のソースから読み込んだものと変わらなかったため判明しました。Windows版では問題なかったため、HTML5版のバグかAndroid版ですでに存在したバグだと思います。Android版で検証はまだしていません。
int handle, i, j, w, h, r, g, b, a, fhandle;
void* image;
int image_size;
// 画像ファイルを丸ごとメモリに読み込む
fhandle = FileRead_open("hoge.jpg");
image_size = FileRead_size("hoge.jpg");
image = malloc(image_size);
FileRead_read(image, image_size, fhandle);
FileRead_close(fhandle);
char* str2 = (char*)image;
// LoadSoftImageToMem で読み込む
handle = CreateGraphFromMem(image, image_size);
// BMP画像の表示
DrawGraph( 0 , 0 , handle, TRUE ) ;
mp3ファイルのメモリファイルからの読み込みにおいてLoadSoundMemByMemImage関数が正常に読み込まない動作をするようです。(-1を返します)
wavファイルとoggファイルは正常に再生出来ることを確認出来ました。
以下のログが出力されました。
5664:音声ファイルのPCMへの変換に失敗しました
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.