[PLUGIN] Audiere Sound

Forum Home Forum Home > Construct Classic > Construct Classic Discussion > Completed addons
 Post Reply Post Reply Page  123 7>
Author
7,061 Rep
Post Options Post Options   Quote R0J0hound Quote  Post ReplyReply Direct Link To This Post Topic: [PLUGIN] Audiere Sound
    Posted: 24 May 2011 at 9:58pm
Here is a alternative to XAudio2 for having sound in your game. It uses the Audiere sound library as a base and it can play Ogg Vorbis, MP3, FLAC, uncompressed WAV, AIFF, MOD, S3M, XM, and IT files.

It behaves much like XAudio2 but instead of channels you access loaded sounds and musics by alias' (or names).

Audiere Sound Plugin 1.4 Download
To install copy the plugins folder to your construct directory.

To get started use the "Load Music form file" action.

version 1.1:
[fix] Music stop was not working correctly.

version 1.2
[fix] Music set repeat was not working.

Edit:
version 1.3
[fix] Load music from resource was messed up.

version 1.4
[fix] There were rounding errors with volume. Higher precision is now used.

Edited by R0J0hound - 24 Dec 2011 at 12:05am
Back to Top
4,319 Rep
Post Options Post Options   Quote chrisbrobs Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2011 at 10:41pm
Nice!

Edited by Tom - 13 Jan 2012 at 1:57pm
http://www.youtube.com/user/johnbrobs
Back to Top
7,944 Rep
Post Options Post Options   Quote Jayjay Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2011 at 10:48pm
Ah this is awesome! No more switching between plugins when playing different formats :P Will this eventually included in Construct Classic itself?
Back to Top
4,019 Rep
Post Options Post Options   Quote PixelRebirth Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2011 at 11:02pm
Oh, how unexpected. The MOD object was a pain in the ass to be frank, this should come in handy. Thank you so much R0J0hound!
Back to Top
16,470 Rep
Post Options Post Options   Quote newt Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2011 at 12:38am
[quote="PixelRebirth":3p58e3lt]Oh, how unexpected. The MOD object was a pain in the ass to be frank, this should come in handy. Thank you so much R0J0hound![/quote:3p58e3lt]

^This x10

One thing, should play music from resource have an alias?
Back to Top
2,807 Rep
Post Options Post Options   Quote Sagal Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2011 at 5:40am
Nice plugin even though my current hobby is just to collect loads of plugins without really doing anything :D
Back to Top
6,826 Rep
Post Options Post Options   Quote zenox98 Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2011 at 5:59am
Many thanks.
Back to Top
4,366 Rep
Post Options Post Options   Quote Noga Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2011 at 3:38pm
Ahh..it doesn't work for me :( . I tried to play about 10 mp3 and ogg files. Playback is good, but can't set starting position for any file. What's the format for it. I only tried whole numbers, supposed 3000 could be someting like 3sec. When I enter any number it starts playback again. Stop music doesn't work - it stops the music and starts again. If I load music file as sound, there is pause, probably as it's caching the file, then stop function work, but there is no action to set sound position. Do you think, all these could be fixed? In documentation for the plugin, there is midi support - I believe it's just not activated, would it be worth it to include it?
Hope you can fix it, that'd be awesome.
Back to Top
917 Rep
Post Options Post Options   Quote zeno Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2011 at 3:54pm
This is really great, thanks R0J0hound :D
Back to Top
7,061 Rep
Post Options Post Options   Quote R0J0hound Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2011 at 6:08pm
I fixed the music stop action. download version 1.1 in the first post.

The "set position" action only works for files that support seeking. You can use the "is seekable" condition to check. Unfortunately the Audiere library doesn't seem to support seeking for most of the file formats it supports. In other words it's a limitation of the Audiere library that I can't work around.

[quote:86nw5jlc]In documentation for the plugin, there is midi support - I believe it's just not activated, would it be worth it to include it?[/quote:86nw5jlc]
It has no volume control for midi files, so I decided not to include the feature.
Back to Top
 Post Reply Post Reply Page  123 7>

Forum Jump Forum Permissions View Drop Down