mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-18 20:55:09 +00:00
38 lines
No EOL
1.3 KiB
Text
38 lines
No EOL
1.3 KiB
Text
{{DISPLAYTITLE:_SNDLEN}}
|
|
The [[_SNDLEN]] Function returns the length of a sound in seconds using a handle from the [[_SNDOPEN]] Function.
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
|
::: soundlength = '''_SNDLEN ('''{{Parameter|handle&}}''')'''
|
|
|
|
|
|
{{PageDescription}}
|
|
*Returns the length of a sound in seconds.
|
|
*The opened file must include the "LEN" capability to use this function.
|
|
{{TextStart}} QB64 supports the following sound file formats ('''Bold is a guaranteed capability'''):
|
|
|
|
WAV = "'''VOL,SYNC,LEN''',PAUSE" [http://www.rarewares.org/ogg-oggdropxpd.php Free WAV to OGG GUI converter]
|
|
OGG = "VOL,SYNC,LEN,PAUSE" [http://www.rarewares.org/ogg-oggenc.php Free WAV to OGG converter]
|
|
AIF = "VOL,SYNC,LEN,PAUSE"
|
|
RIF = "VOL,SYNC,LEN,PAUSE"
|
|
VOC = "VOL,SYNC,LEN,PAUSE"
|
|
MID = "'''VOL'''"
|
|
MOD = "VOL,PAUSE"
|
|
MP3 = "'''VOL''',PAUSE,SETPOS" [http://www.freemp3wmaconverter.com/index.html Free WMA, MP3 and OGG converter]
|
|
|
|
''Note:'' {{Cb|_SNDBAL}} only affects MP3 volume. Sound will reside in main channel.
|
|
{{TextEnd}}
|
|
|
|
|
|
''Example:''
|
|
{{CodeStart}} '' ''
|
|
{{Cl|PRINT}} {{Cl|_SNDLEN}}(h&) '' ''
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[_SNDCOPY]], [[_SNDLIMIT]]
|
|
|
|
|
|
{{PageNavigation}} |