游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1760|回复: 1

请教TV3D在VC++6.0中运行Sound的问题

[复制链接]

1

主题

1

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2006-2-28 01:45:00 | 显示全部楼层 |阅读模式
我目前使用的是VC++6.0 SP6与TV3D 6.2 SDK在做测试,
DX SDK使用过2006二月以及2003 Summer两种版本,
(分别是9.0c最新版与9.0b)
并由其中的第10个教学文件开始修改成自己的东西,
目前是可以使用TV3DEngine来作绘图,
可是目前为了要加入声音,
所以到tv3dcpp.h中想要读入tvmedia.dll,
但问题就在於取消了关於TVMedia部分的注释後,
编译时却发生问题,问题如下:
--------------------Configuration: Tutorial 10 - Win32 Debug--------------------
Compiling...
Tutorial 10.cpp
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tli(695) : error C2564: 'void *' : function-style conversion to builtin type takes only one argument
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tli(1068) : error C2027: use of undefined type 'DSCAPS'
        d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tlh(1048) : see declaration of 'DSCAPS'
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tli(1069) : error C2079: '_result' uses undefined struct 'DSCAPS'
d:\tv3dsdk\vc++6\tutorial 10\debug\tvmedia.tli(1070) : error C2664: 'get_ActiveSoundDeviceCapabilities' : cannot convert parameter 1 from 'int *' to 'struct TV3DMedia:SCAPS *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

Tutorial 10.exe - 4 error(s), 0 warning(s)

所以使得我无法使用TVMedia的功能,
不知道板上有没有人有用过VC++6.0与TV3D6.2做过开发的?
想请教是否有办法解决这个问题,谢谢。

29

主题

205

帖子

215

积分

中级会员

Rank: 3Rank: 3

积分
215
发表于 2006-3-2 09:16:00 | 显示全部楼层

Re:请教TV3D在VC++6.0中运行Sound的问题

个人感觉TV的声音部分封装的有点乱,建议使用FMOD,功能比TVMedia强大多了
PS:我使用Visual Basic+Truevision3D,非C++
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-23 19:56

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表