Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
I don't get any of this... Tutorial?

DARkTYranno
Guest
Quote
2012-11-24 14:02:03

Hey,

I want to be able to run .it/.xm files in the background when I run my program.
I just started using C for some days and I can't find any useful tutorials on how to use this.
Can anyone give some short step by step tutorial on the things I need to do to just play some file when I run my program?

I can add the looping and stop functions etc. later, if this works first.
Thanks for any help! ;)


erik
Registered User
Quote
2012-11-24 20:40:16

Didn't you try any of these? http://www.ambiera.com/irrklang/...


DARkTYranno
Guest
Quote
2012-11-24 22:21:34

Well, I tried a lot of different tutorials and completely pasted some projects, but in almost all cases I get the errors that irrKlang isn't recognised.
I found some things of copying all kinds of dll's, libs, and more stuff...
Why isn't it in the readme in the first place?
It's just some complete files that work, but I need step by step to build it.

I had some code that seemed okay, no errors or warnings, but it didn't play the file. It was in the project folder, but I didn't add it to resource (found out later that you have to do something like that too..)

So I'm completely lost, what do I need to do?


erik
Registered User
Quote
2012-11-25 21:39:09

Depends on what error you get exactly. Maybe you could paste it?
I think the reason might be that you forgot to tell to link with the irrklang.lib file, or to add the include directory, to let the compiler search for the header files of irrklang. This is something you usually do when using some external libaries in cpp, so don't expect the irrklang docs to explain it to you, it also won't explain how to program in that language


DARkTYranno
Guest
Quote
2012-11-26 08:07:25

I'll try to implement it again soon and I'll tell all the steps I've done + the error if I can't get it to work.


DARkTYranno
Guest
Quote
2012-11-29 09:09:46

I finally got it working! :D

Copied the incluse, all dll's and the lib and exp in project folder, in the project itself created a reference for the .net4 dll and did the 'using irrKlang'.
It didn't give errors.
Only using the ISoundEngine and the Play2D with the correct filepath was enough to start the music when running the app, finally!

Now I noticed the loopfunction isn't working correctly for music that already loops in itself.. how do you fix that??


DARkTYranno
Guest
Quote
2012-11-29 09:16:55

Oh, and it seems .xm files don't work, they should, right?


niko
Moderator
Quote
2012-12-01 07:21:23

Do they work in the example player application with come with irrklang?


DARkTYranno
Guest
Quote
2012-12-01 15:08:15

Yes, that works, but I don't know what's done in those projects.
I had to figure this out all by myself, but I can't switch the input for the .it file with a .xm file, what extra things you need to do for that?

And for the looping:
Normally a song plays 1,2,3,4,5,6,End. Go back to 1 (if you set loop)
I have a song that does 1,2,3,4,5,6,go to 3..
and it acts like the first row... Is there any solution for that?

Thanks.


niko
Moderator
Quote
2012-12-02 21:57:32

I think the looping problem might be a problem in the decoder plugin. Converting to another format is not an option for you?


DARkTYranno
Guest
Quote
2012-12-02 22:35:24

At the moment, No.
I've just started using OpenMPT, creating C apps and all, so I can't convert .xm files at the moment, only to mp3, but that's too big... So much to figure out for my project. *Sigh*
I also have some .it track that doesn't play, but I'll try the original author first.


DARkTYranno
Guest
Quote
2012-12-03 15:09:03

The author replied that the track was the same as hos other ones.
There's no real difference in size, that it's too big too play or something..
I don't know what's causing it to remain silent when I try to implement this one in my app.
Can you try if you can get it to work maybe?

http://sagamusix.de/en/music/
70. Cloud Number 5 (.it version)


DARkTYranno
Guest
Quote
2012-12-03 21:46:59

I already have more songs in .it that won't play...
I need them so badly, is it decoding problem or do I need another modplayer to be able to play them?


niko
Moderator
Quote
2012-12-05 07:42:43

Yes, it's probably a bug in the decoder, and probably not going to be fixed quickly. Try another modplayer would be better for you, probably.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact