Hi
I load a same PDJ playlist file from the sample program; "VideoMixerWithFader" but different audio driver.
One is "DirectSound" and one is "WASAPI" ( I add some codes to initialize the "WASAPI" drivers).
Private Sub frmFader_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Print(m_audioAPI.InitDriversType(enumDriverTypes.DRIVER_TYPE_WASAPI).ToString)
' verify presence of audio output devices
Dim nOutputs As Int32 = m_audioAPI.GetOutputDevicesCount()
If nOutputs = 0 Then
MessageBox.Show("No output device detected and/or connected: the program will now close. If you are running under Windows Vista or higher, jack-sensing could disable an existing sound card if no speaker is physically connected so, if you are sure that a sound card is installed, try to plug a couple of speakers into the sound card before launching again this program.")
Close()
End If
' init the conmponent
m_audioAPI.InitSoundSystem(2, 0, 0, 0, 0)
If (Not m_audioAPI.WASAPI.DeviceIsStarted(0, enumWasapiDeviceTypes.WASAPI_DEVICE_TYPE_RENDER)) Then
' start all of the WASAPI output devices in shared mode
m_audioAPI.WASAPI.DeviceStartShared(0, enumWasapiDeviceTypes.WASAPI_DEVICE_TYPE_RENDER, enumWasapiChannelModes.WASAPI_CHANNEL_MODE_MULTI, 50, 10)
Debug.Print(m_audioAPI.LastError.ToString)
End If
....
The CallbackForPlayersEvents sequence are EV_PLAYLIST_SOUND_LOADED, EV_SOUND_PLAYING and EV_SOUND_DONE step by step.
"DirectSound" logs are normal
"WASAPI" logs are weird
---------------------------------------------------------------------------------
"DirectSound"
EV_PLAYLIST_SOUND_LOADED 0 2019/12/05 18:46:46
EV_SOUND_PLAYING 2019/12/05 18:46:46
EV_SOUND_DONE 2019/12/05 18:46:56
EV_PLAYLIST_SOUND_LOADED 1 2019/12/05 18:46:56
EV_SOUND_PLAYING 2019/12/05 18:46:56
EV_SOUND_DONE 2019/12/05 18:47:10
EV_PLAYLIST_SOUND_LOADED 2 2019/12/05 18:47:10
EV_SOUND_PLAYING 2019/12/05 18:47:10
EV_SOUND_DONE 2019/12/05 18:47:29
EV_PLAYLIST_SOUND_LOADED 3 2019/12/05 18:47:29
EV_SOUND_PLAYING 2019/12/05 18:47:30
EV_SOUND_DONE 2019/12/05 18:47:35
----------------------------------------------------------------------------------
"WASAPI"
EV_PLAYLIST_SOUND_LOADED 0 2019/12/05 18:40:32
EV_SOUND_PLAYING 2019/12/05 18:40:32
EV_PLAYLIST_SOUND_LOADED 1 2019/12/05 18:40:42
EV_SOUND_PLAYING 2019/12/05 18:40:42
EV_SOUND_DONE 2019/12/05 18:40:43
EV_PLAYLIST_SOUND_LOADED 2 2019/12/05 18:40:57
EV_SOUND_PLAYING 2019/12/05 18:40:57
EV_SOUND_DONE 2019/12/05 18:40:57
EV_PLAYLIST_SOUND_LOADED 3 2019/12/05 18:41:16
EV_SOUND_PLAYING 2019/12/05 18:41:16
EV_SOUND_DONE 2019/12/05 18:41:16
As you can see, "EV_SOUND_DONE" always was fired immediately after "EV_SOUND_PLAYING", and the "EV_SOUND_DONE" to the firest song was never fired .
All song in the playlist can play smoothly to the end on both sides.
Best Regards
(Sorry for my English...)
Terry