MultiMedia Soft forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

SMF - Just Installed!

Pages: [1] 2 3 ... 10
 1 
 on: March 03, 2021, 11:59:10 PM 
Started by Terry - Last post by Administrator
Hello Terry,

the purpose of a playlist is to play all contained songs in sequence without the user's intervention so using a playlist in the way you request is not covered by playlist's management of our components.
A possible solution could be to extract a specific song's pathname from that position inside the playlist and load that sound into another player using the LoadSound method.
For the purpose of obtaining the full pathname of a song stored inside the playlist at a certain position, you could use the PlayListGetItemString method with the "nString" parameter set to "PL_STRING_URL".

Hope this helps

Kind Regards

Severino Delaurenti
MultiMedia Soft


 2 
 on: March 03, 2021, 04:39:09 PM 
Started by Terry - Last post by Terry
Hello,

I create a playlist using the PlayListCreate method and add some audio files.
The "PlayListExecAt" executes the playlist from the specified position until the playback is complete.
How to stop automatically after playing the specified position?

Best regards
Terry

 3 
 on: March 01, 2021, 10:39:11 AM 
Started by PatrickVossen - Last post by Administrator
Hello Patrick,

unfortunately this is not well explained inside the documentation but, by design, both the PlayListExecute and PlayListExecAt methods will cause a new shuffle of the loaded playlist so you should invoke the PlayListExecOrderTableGet method again after their call: differently from meniotned methods, using the PlayListExecNext method will not request a new shuffle.

Hope this helps

Kind Regards

Severino Delaurenti
MultiMedia Soft


 4 
 on: March 01, 2021, 09:28:10 AM 
Started by PatrickVossen - Last post by PatrickVossen
Hi Severino,

Thanks for this.

Have a nice day

 5 
 on: March 01, 2021, 09:27:23 AM 
Started by PatrickVossen - Last post by PatrickVossen
Hi Severino,

For starting the playlist, I have tried :
        AudioDjStudio1.PlayListExecute(Player_1, True)
        AudioDjStudio1.PlayListExecute(Player_1, False)
        AudioDjStudio1.PlayListExecAt(Player_1, IndexOrder(0))
        AudioDjStudio1.PlayListExecAt(Player_1, 0)

I have added my vb code and the playlist (.pdj) I have used

Code: [Select]
Imports AudioDjStudio

Public Class Form1
    Private Const Player_1 As Short = 0

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim ofd As New OpenFileDialog With {
            .Filter = "Playlist formats (*.m3u;*.pls;*.wpl;*.pdj)|*.m3u;*.pls;*.wpl;*.pdj|M3U PlayList (*.m3u)|*.m3u|PLS PlayList (*.pls)|*.pls|WPL PlayList (*.wpl)|*.wpl|PDJ PlayList (*.pdj)|*.pdj|All files (*.*)|*.*",
            .InitialDirectory = AudioDjStudio1.SoundsDirectory
        }
        If ofd.ShowDialog() <> DialogResult.OK Then Return

        If AudioDjStudio1.PlayListLoadSync(Player_1, ofd.FileName, enumPlayListModes.PLAYLIST_AUTOMATION_MODE) <> enumErrorCodes.NOERROR Then
            MessageBox.Show("Error loading playlist")
            Return
        End If
    End Sub

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        AudioDjStudio1.InitSoundSystem(1, 0, 0, 0, 0, -1)

        AudioDjStudio1.PlayListSetLoop(Player_1, False)
        AudioDjStudio1.PlayListSetShuffle(Player_1, True)
    End Sub

    Private Sub AudioDjStudio1_PlayListLoadDone(sender As Object, e As PlayListLoadDoneEventArgs) Handles AudioDjStudio1.PlayListLoadDone
        Debug.WriteLine($"AudioDjStudio1_PlayListLoadDone   nPlayerIndex={e.nPlayerIndex}   bSuccess={e.bSuccess}")

        Dim Quantity As Short = AudioDjStudio1.PlayListGetCount(Player_1)
        Dim IndexOrder() As Short
        If Quantity > 0 Then
            ReDim IndexOrder(Quantity - 1)
            Debug.WriteLine(AudioDjStudio1.PlayListExecOrderTableGet(Player_1, IndexOrder, Quantity).ToString)
            Debug.WriteLine("+++++++++++++++++++++++++++++++")
            For index As Integer = 0 To IndexOrder.Length - 1
                Debug.WriteLine(IndexOrder(index))
            Next
            Debug.WriteLine("+++++++++++++++++++++++++++++++")
        End If
        AudioDjStudio1.PlayListExecute(Player_1, True)
        'AudioDjStudio1.PlayListExecute(Player_1, False)
        'AudioDjStudio1.PlayListExecAt(Player_1, IndexOrder(0))
        'AudioDjStudio1.PlayListExecAt(Player_1, 0)

    End Sub

    Private Sub AudioDjStudio1_PlayListLoadPerc(sender As Object, e As PlayListLoadPercEventArgs) Handles AudioDjStudio1.PlayListLoadPerc
        Debug.WriteLine($"AudioDjStudio1_PlayListLoadPerc   nPlayerIndex={e.nPlayerIndex}   nPercentage={e.nPercentage}")
    End Sub

    Private Sub AudioDjStudio1_PlayListLoadStart(sender As Object, e As PlayerEventArgs) Handles AudioDjStudio1.PlayListLoadStart
        Debug.WriteLine($"AudioDjStudio1_PlayListLoadStart   nPlayerIndex={e.nPlayerIndex}")
    End Sub

    Private Sub AudioDjStudio1_PlayListDone(sender As Object, e As PlayerEventArgs) Handles AudioDjStudio1.PlayListDone
        Debug.WriteLine($"AudioDjStudio1_PlayListDone   nPlayerIndex={e.nPlayerIndex}")
    End Sub

    Private Sub AudioDjStudio1_PlaylistSoundLoaded(sender As Object, e As PlaylistSoundLoadedEventArgs) Handles AudioDjStudio1.PlaylistSoundLoaded
        Debug.WriteLine($"AudioDjStudio1_PlaylistSoundLoaded   nPlayerIndex={e.nPlayerIndex}   nItemIndex={e.nItemIndex}   strTag={e.strTag}")
    End Sub

    Private Sub AudioDjStudio1_PlayListSoundLoadFailure(sender As Object, e As SoundLoadedEventArgs) Handles AudioDjStudio1.PlayListSoundLoadFailure
        Debug.WriteLine($"AudioDjStudio1_PlayListSoundLoadFailure   nPlayerIndex={e.nPlayerIndex}   nItemIndex={e.nItemIndex}")
    End Sub
End Class

 6 
 on: March 01, 2021, 08:45:44 AM 
Started by PatrickVossen - Last post by PatrickVossen
Hi Sererino,

Thanks for you explanation.

Grtz Patrick

 7 
 on: February 27, 2021, 03:47:12 PM 
Started by PatrickVossen - Last post by Administrator
Hello again,

with regards to the other fact you mentioned, that the PlayListLoad method doesn't seem to work, please, be advised that, accordingly to the documentation, the PlayListLoadDone event is only generated when using the PlayListLoadSync method so in case you should perform coding inside the event handler, this code won't be reachable due to the fact that the PlayListLoadDone event is not generated by the PlayListLoad method: you should transfer the handler's code immediately after invoking the PlayListLoad method.

Kind Regards

Severino Delaurenti
MultiMedia Soft

 8 
 on: February 27, 2021, 02:43:36 PM 
Started by PatrickVossen - Last post by Administrator
Hello Patrick,

could you be so kind to tell me which method are you currently using for starting execution of the playlist?

Kind regards

Severino Delaurenti
MultiMedia Soft

 9 
 on: February 27, 2021, 01:19:28 AM 
Started by mjividen - Last post by Administrator
Hello,

sorry for the delay in answering this question but I totally missed your latest reply.
We are currently working to develop a totally rewritten version of the recorder that will speed up things a lot and that should be efficient also for long recording sessions: we hope to have the new major version delivered by the end of May.

Kind regards

Severino Delaurenti
MultiMedia Soft

 10 
 on: February 27, 2021, 01:15:51 AM 
Started by PatrickVossen - Last post by Administrator
Hello Patrick,

we will try to replicate the issue and will let you know our findings at the soonest.

Kind Regards

Severino Delaurenti
MultiMedia Soft

Pages: [1] 2 3 ... 10