More audio information

About Monkey 2 Forums Monkey 2 Programming Help More audio information

This topic contains 4 replies, has 2 voices, and was last updated by  Hezkore 2 years ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7817

    Hezkore
    Participant

    I need some more information from the audio I’m playing, like length, current playing time etc.
    And is there any way to jump a few milliseconds into the audio file, or can I really just Play, Pause and Stop?

    #7825

    Mark Sibly
    Keymaster

    Currently, Audio/Sound classes are pretty bare, and yes, you can really just Play,Pause and Stop right now.

    But openal is pretty grunty so the situation can certainly be improved. I’ll see what I can come up with, but I’m sort of guessing what people want (play, pause and stop are fine for me!) so please also post specific feature requests to github issues.

    #7828

    Hezkore
    Participant

    Alright cheers Mark.
    I’ve posted my requests over at the GitHub issues section.

    #7829

    Mark Sibly
    Keymaster

    There’s actually a bunch of useful sample info (like length, pitch, channels etc) in the AudioData class. mojo.audio uses this internally when loading Sounds – but then it just throws the audio data away! It would of course be super convenient to keep this sample info around, even if actual sample data isn’t directly needed anymore (ie: its been transferred to openal).

    #7841

    Hezkore
    Participant

    I just noticed that you’ve added all of my requests to the Dev branch of M2.
    Fantastic Mark, thanks!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.