Jump to content

API Sound.Create: Difference between revisions

From Flowcode Help
Admin (talk | contribs)
XML import
Admin (talk | contribs)
XML import
Line 21: Line 21:
:True to treat each pair of samples as a stereo sample
:True to treat each pair of samples as a stereo sample
:''The default value for this parameter is: '''''0'''
:''The default value for this parameter is: '''''0'''


==Return value==
==Return value==
Line 26: Line 27:


''<span style="color:red;">No additional information</span>''
''<span style="color:red;">No additional information</span>''





Revision as of 01:54, 12 May 2013

<sidebar>API contents</sidebar> Creates a sound object that data can be played through

Class hierarchy

Sound

Create

Parameters

ULONG SampleRate

The number of samples per second
The default value for this parameter is: 44100

BYTE SampleBits

The number of bits per sample - either 8 or 16
The default value for this parameter is: 8

BOOL Stereo

True to treat each pair of samples as a stereo sample
The default value for this parameter is: 0


Return value

HANDLE

No additional information


Detailed description

No additional information


Examples

Calling in a calculation

  • Declare a variable 'result' of type HANDLE
  • Add to a calculation icon:
    result = ::Sound.Create(samplerate, samplebits, false)

No additional information