• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Go で書き直した Ikemen


Commit MetaInfo

Revisiona3a3f70a7d6200e33a3cf4a1ce053188f1b6c1da (tree)
Time2017-03-25 19:17:33
AuthorSUEHIRO <supersuehiro@user...>
CommiterSUEHIRO

Log Message

sndファイルの読み込みを修正

Change Summary

Incremental Difference

--- a/src/sound.go
+++ b/src/sound.go
@@ -391,6 +391,12 @@ func ReadWave(f *os.File, ofs int64) (*Wave, error) {
391391 ofs += int64(size) + 8
392392 f.Seek(ofs, 0)
393393 }
394+ if fmtSize == 0 {
395+ if dataSize > 0 {
396+ return nil, Error("fmt がありません")
397+ }
398+ return nil, nil
399+ }
394400 return &w, nil
395401 }
396402