Page 1 of 1

More control over sound functions...

Posted: Tue May 31, 2011 8:17 am
by jeslar360
PauseSound(#Sound)

GetSoundPos(#Sound) - Tell the position of the PLAY pointer, in milliseconds

SetSoundPos(#Sound, {POSITION}) - Set the Play Pointer to the {POSITION} by millisecond

PlaySoundPart(#Sound, {STARTPOS}, {ENDPOS}) - Play the sound from StartPos to EndPos (in milliseconds), if is EndPos not defined, play til end of sound.

Would also like to see some recording and encoding/transcoding functions...

Re: More control over sound functions...

Posted: Fri Jun 10, 2011 7:45 am
by blueznl
I think there's not even something like SoundLength() is there? :(

Re: More control over sound functions...

Posted: Fri Jun 10, 2011 9:21 am
by c4s
This gets requested over and over since several years. To mention just a few: With IsPlaying() obviously being the most requested one. Seriously, sometimes you should listen a little more to our requests. Sure there tons of them but look at it, this gets constantly requested for over 10 years!

Re: More control over sound functions...

Posted: Fri Jun 10, 2011 9:56 am
by Shield
I wonder why the community doesn't do this on its own...?
If you guys need additional functionality...just write your own libraries and share it with the
rest if you like. You're all programmers. Be intuitive. :)

Re: More control over sound functions...

Posted: Fri Jun 10, 2011 10:04 am
by Polo
Shield wrote:I wonder why the community doesn't do this on its own...?
If you guys need additional functionality...just write your own libraries and share it with the
rest if you like. You're all programmers. Be intuitive. :)
I must say Purebasic Sound library is very limited - though I support the fact someone could try to build a new one, if it's good and cross platform, probably Fred & freak will implement it in Purebasic and everybody will be happy :)

Re: More control over sound functions...

Posted: Fri Jun 10, 2011 10:28 am
by MachineCode
Shield wrote:I wonder why the community doesn't do this on its own...?
Because we shouldn't have to. The fact that we do, is beside the point.

Re: More control over sound functions...

Posted: Fri Jun 10, 2011 5:52 pm
by Shield
Well, the first priority of developing a programming language like PureBasic is to create
a stable compiler and a good set of language specific things ("keywords", general syntax).

Built-in functions are nothing more than "nice to have", they can be implemented by users of the compiler.
MachineCode wrote:Because we shouldn't have to.
The only thing we shouldn't have to do is worrying about compiler related bugs.

Re: More control over sound functions...

Posted: Fri Jun 10, 2011 6:08 pm
by blueznl
Well, I do agree. It's not the most important part, but with all the good core functionality and all the graphic updates the few remaining lacks start to become more and more... euh... 'audible' :-)

Writing your own sound functions is all good, but it's not *easy* and involves some serious programming, which typically goes beyound regular use of a *basic* language, at least, IMHO etc.