Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Get/Set the current position in the file which is played

marku5
Guest
Quote
2012-07-27 20:28:24

Hi mates,

Is there a way to get and set the position (the current index where the soundplayer is playing) in a soundfile?

I have one soundfile whichs contains different sounds.

Now i want for example to play the sound at position 1050 and stop the sound as soon as it reaches 3120.

As example look at the graphic below

[------------Part to be played------------]
Bytes of soundfile: ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||



erik
Registered User
Quote
2012-07-28 17:18:05

You can get the playposition using getPlayPosition() and set it with setPlayPosition(), I think that's what you want?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (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