Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Hekkus Sound System 0.99.rc1 released!


Postby gersen » May 15, 2004 @ 6:17am

The sample for PF 7.0 on the Hekkus download page are updated and use Hekkus 0.99.x.

From the Hekkus documentation:

s32 hssSpeaker::open (
u32 freqmix,
u32 bps,
bool stereo,
u32 maxmodchannels = MUSIC_MIN,
u32 maxsfxchannels = SOUND_MIN
)


Initialize the Hekkus Sound System.

Open sound output at freqmix, setup a thread for sound update and alloc specified channels.

Parameters:
freqmix output rate in hz.
bps select 16 or 8 bit output.
stereo enable stereo output (true == stereo, false == mono).
maxmodchannels number of ProTracker channels to allocate.
maxsfxchannels number of Wave channels to allocate.

First parameter is the output rate, common value are 11025, 22050 and 44100.

Small mods play & big one's don't


when you load the big one mod what the load function return? With version 0.99.x all the function return an int and not a bool so you can check what is wrong when functions failed (could be an out of memory problem or an incorrect module format).
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby Conan » May 15, 2004 @ 7:15am

I will let you know the return value as soon as I get the debug version working again. I now have PF & Hekkus working fine but only in release mode. Debug mode's project settings are messed up after me messing around yesterday.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby Conan » May 18, 2004 @ 1:48pm

The return value I get when trying to load a module is -200.

Can you tell me what this means & also is there a list of return codes?

thanks in advance
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby gersen » May 18, 2004 @ 2:57pm

You can find all the return codes on the file hssErrorDefs.h under the include directory of your Hekkus copy.

The error code -200 mean file not found, later I will look at the code but I'm pretty sure that the load routine isn't buggy.
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby Conan » May 18, 2004 @ 6:51pm

ok, load from a .mod file works if you give it a text string, eg: "thismod.mod" but not if I give it a TCHAR containing the same string.
Will test more later but managed to get tune selection, on off & volume working
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby Dan East » May 18, 2004 @ 8:22pm

TCHAR is unicode, "This is a string" is not. Does Load take a char or TCHAR?

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby gersen » May 18, 2004 @ 8:28pm

The load take a TCHAR, so if you put the same string on a TCHAR var and call the load routine it have to work. Are you sure you are passing the right pointer? Can you post the code that don't work?
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby Conan » May 19, 2004 @ 6:15am

ok, take me out & shoot me. The load from file works fine. For some reason I had not noticed that I was using _tcscat instead of _tcscpy to load up the string & I had never looked at the string contents to check during debugging.

As I have said many times before I'm writing my first real C++ program & it's sometimes a struggle. (of course we have patient & knowledgeable people like Dan East around on PM to give a nudge in the right direction)

I will press on & get the sound effects implemented today.

ps: Re the donation payment if you cannot use Worldpay I will just send a cheque & add on something to cover your currency conversion costs as it's safer than a parcel containing Euros.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Just checking the DLL thing again.

Postby Conan » Jun 22, 2004 @ 10:54am

Can you be certain that the hss.dll supplied works on PPC2000? I'm jast asking as I cannot find any reason why Space Treker will not run on my old iPaq. As far as I'm concerned everything needed is supplied by the setup excluding gx.dll which is there & working.

ps: How about agreeing a payment method? Remember I cannot/Will not use Paypal (cause they are dodgy in my opinion)
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby gersen » Jun 22, 2004 @ 11:03am

Uhm, try this, remember to rebuild (not just linking) all your game with the .lib and .dll on the package.

Later I will send you a mail to discuss the payment, thank you.
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby Conan » Jun 22, 2004 @ 12:07pm

Here's what I tried:-
1. rebuild all for PocketPC platform (using existing LIB & DLL which work with PPC2002.
2. This still gives the 'something missing' error
3. copied in just the dll you sent. Program stops giving the error & now crashes silently.
4. The crash happens on m_sound.playMusic(&m_module)

Anything you want me to try? In the meantime I will try the sample mod & see if it plays, No it still crashes using the sample ars.mod.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby gersen » Jun 22, 2004 @ 2:13pm

You could try this,

- rebuild your game for ppc2000 with the .lib that I sent.
- manually copied the .dll that I sent.

try also this rotozoom+hekkus sample that I have compiled for ppc2000 and tell me if it works.
Attachments
rotohekkus-ppc2000.zip
(39.85 KiB) Downloaded 1454 times
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby Conan » Jun 22, 2004 @ 3:50pm

yes, your demo works, off to rebuild using the lib (I did not want to use it in case it messed up my project in any way but will do so now)

When I put the new hss.lib into the ppcarm lib folder I get 11 hss linker errors after a rebuild all or an ordinary build. When I put the original one back it links fine.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby gersen » Jun 22, 2004 @ 4:20pm

If the demo works you can download Hekkus v. 0.99.1.beta3 and your game shloud work too.

0.99.1.beta3 is just a bugfix relese, no new feature and the most change are on the symbian version so don't worry about the beta on the name and use it on your game :)
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby Conan » Jun 22, 2004 @ 5:26pm

I get these linker errors with the latest beta version:- (the LIBC one is not an issue)
Linking...
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
scans.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playSound(class hssSound *,bool)" (__imp_?playSound@hssSpeaker@@QAEHPAVhssSound@@_N@Z)
tactical.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playSound(class hssSound *,bool)" (__imp_?playSound@hssSpeaker@@QAEHPAVhssSound@@_N@Z)
trade.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playSound(class hssSound *,bool)" (__imp_?playSound@hssSpeaker@@QAEHPAVhssSound@@_N@Z)
warp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playSound(class hssSound *,bool)" (__imp_?playSound@hssSpeaker@@QAEHPAVhssSound@@_N@Z)
bases.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playSound(class hssSound *,bool)" (__imp_?playSound@hssSpeaker@@QAEHPAVhssSound@@_N@Z)
impulse.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playSound(class hssSound *,bool)" (__imp_?playSound@hssSpeaker@@QAEHPAVhssSound@@_N@Z)
input.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playSound(class hssSound *,bool)" (__imp_?playSound@hssSpeaker@@QAEHPAVhssSound@@_N@Z)
orbit.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playSound(class hssSound *,bool)" (__imp_?playSound@hssSpeaker@@QAEHPAVhssSound@@_N@Z)
input.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall hssSpeaker::playMusic(class hssMusic *,bool)" (__imp_?playMusic@hssSpeaker@@QAEHPAVhssMusic@@_N@Z)
Debug/treker.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

treker.exe - 10 error(s), 1 warning(s)


update: PocketPC 2002 version works fine. Off to see why 2000 & XP versions don't

update: PocketPC 2000 iPaq 3650 working fine for first time ever. Many thanks :)
Not sure what's wrong with XP thought? back to work
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


PreviousNext

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron