8000 [DXRuby 1.4.7] 64bitでは、Sound.newでエラー · Issue #4 · mirichi/dxruby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[DXRuby 1.4.7] 64bitでは、Sound.newでエラー #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
noanoa07 opened this issue Jan 17, 2021 · 0 comments
Open

[DXRuby 1.4.7] 64bitでは、Sound.newでエラー #4

noanoa07 opened this issue Jan 17, 2021 · 0 comments

Comments

@noanoa07
Copy link
noanoa07 commented Jan 17, 2021

64bit版では、Sound.new でエラーになります。

サンプルコード↓

require 'dxruby'

sound = Sound.new("sound.wav")  # sound.wav読み込み
#bgm = Sound.new("bgm.mid")  # bgm.mid読み込み

#bgm.play

Window.loop do
  if Input.key_push?(K_Z) then  # Zキーで再生
    sound.play
  end
end

>ruby sound.rb
sound.rb:3:in initialize': DirectMusic initialize error - CoCreateInstance (DXRuby::DXRubyError) from sound.rb:3:in new'
from sound.rb:3:in `

'

動作環境

  • Windows 10(64bit)
  • ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
  • Windows Installer for Windows で + Devkit版
  • d3dx9_40.dll(64bit)を C:\Windows\System32フォルダに配置

比較環境(こちらはエラーなく動作)

  • ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [i386-mingw32]
  • d3dx9_40.dll(32bit)を C:\Windows\SysWOW64フォルダに配置
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0