0 Favourites

[PLUGIN] Audiere Sound

This forum is currently in read-only mode.
  • 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

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Nice! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Ah this is awesome! No more switching between plugins when playing different formats Will this eventually included in Construct Classic itself?

  • 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!

  • 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!

    ^This x10

    One thing, should play music from resource have an alias?

  • Nice plugin even though my current hobby is just to collect loads of plugins without really doing anything

  • Many thanks.

  • 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.

  • This is really great, thanks R0J0hound

  • 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?

    It has no volume control for midi files, so I decided not to include the feature.

  • Cool! Using aliases for sounds is a really neat idea.

    Though it seems I can't get music to repeat. Tried repeating music with ogg, mp3 and xm. No go. =/

  • Fixed the set music repeat action. Download version 1.2 in first post.

  • Works nicely. =)

    Though before I used load music from resource, tried that now and it doesn't repeat now either. It works when using "Load Music from file" but not "Load Music from Resource". But you can't give music/sounds loaded from resources an alias either.

    Other than that tiny quibble it's great.

  • Fixed Load music from resource. Download version 1.3 in first post.

  • Thank you for fixing bugs.

    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.

    The condition returns that song is seekable, but setting position still doesn't work. Is this the limitation you're talking about or if it's seekable it should work.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)