[PLUGIN] Audiere Sound

Completed plugins, behaviors and effects.

Post » Tue May 24, 2011 9:58 pm

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.R0J0hound2011-12-24 00:05:07
B
79
S
24
G
54
Posts: 4,740
Reputation: 40,743

Post » Tue May 24, 2011 10:41 pm

Nice! Tom2012-01-13 13:57:35
B
19
S
6
G
7
Posts: 1,205
Reputation: 7,298

Post » Tue May 24, 2011 10:48 pm

Ah this is awesome! No more switching between plugins when playing different formats :P Will this eventually included in Construct Classic itself?
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Tue May 24, 2011 11:02 pm

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!
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Wed May 25, 2011 12:38 am

[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?
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Wed May 25, 2011 5:40 am

Nice plugin even though my current hobby is just to collect loads of plugins without really doing anything :D
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Wed May 25, 2011 5:59 am

Many thanks.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,843
Reputation: 48,287

Post » Wed May 25, 2011 3:38 pm

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.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Wed May 25, 2011 3:54 pm

This is really great, thanks R0J0hound :D
B
2
S
2
G
1
Posts: 121
Reputation: 1,092

Post » Wed May 25, 2011 6:08 pm

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.
B
79
S
24
G
54
Posts: 4,740
Reputation: 40,743

Next

Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests