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...
More control over sound functions...
Re: More control over sound functions...
I think there's not even something like SoundLength() is there? 

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: More control over sound functions...
This gets requested over and over since several years. To mention just a few:
- http://www.purebasic.fr/english/viewtop ... =3&t=23336 - New sound functions (2006-2011)
- http://www.purebasic.fr/english/viewtop ... =3&t=13526 - IsPlaying() (2004-2010)
- http://www.purebasic.fr/english/viewtop ... =3&t=36781 - Duration (2009)
- http://www.purebasic.fr/english/viewtop ... =3&t=33113 - More commands (2008)
- http://www.purebasic.fr/english/viewtop ... =3&t=30023 - IsPlaying() (2007)
- http://www.purebasic.fr/english/viewtop ... =3&t=20349 - More commands (2006)
- http://www.purebasic.fr/english/viewtop ... =3&t=14390 - IsPlaying() (2005)
- http://www.purebasic.fr/english/viewtop ... f=3&t=5755 - IsPlaying() (before 2003
)
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: More control over sound functions...
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.
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.

Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Re: More control over sound functions...
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 happyShield 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.

-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: More control over sound functions...
Because we shouldn't have to. The fact that we do, is beside the point.Shield wrote:I wonder why the community doesn't do this on its own...?
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: More control over sound functions...
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.
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.
The only thing we shouldn't have to do is worrying about compiler related bugs.MachineCode wrote:Because we shouldn't have to.
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Re: More control over sound functions...
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.

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.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )