![]() |
![]() |
Next![]() |
Allows the chaining of two audio sources in a transparent and inaudible way.Parameters
A crossfading algorithm is applied at the junction between the sources.
AsSnd asSndNext ( AsSnd _sound_ fun [AsSnd u0] u1 _callback_ u0 _user_ P _file_ )
Return value
_sound_ Applicable AsSnd object _callback_ Callback activated when the data of the '_file_' start to be buffered in the AsSnd.
asSndNext can therefore be called again in this callback in order to specify the next audio source, allowing the continuous reading of as many audio sources as desired._user_ User parameter. _file_ The file containing the audio data to be played in the AsSnd at the end of the current file.
This file must have the same audio properties than the one being currently played :
- file format
- number of channels
- resolution
- sampling frequency
The AsSnd given as parameter, or nil in case of failure.Remark
This function only applies to an AsSnd in high-level mode (i.e. that has been initialised with asSndLoad) Due to its dynamic behaviour, asSndNext cannot be used with asSndSetCallbackTime.