Forum: Official SMS Forums - Forum for discussing SMS: Simple Media System player for the PS2.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: play folder of mp3s function, where in sourcecode?
  

Results 1 to 2 of 2
  1. #1 play folder of mp3s function, where in sourcecode? 
    wacek is offline Registered User
    Join Date
    Oct 2005
    Posts
    1
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    hi, i was looking in the source for it, but couldn't find the passage where the m3u list is created, can somebody please tell me in which file and which line i can find it, and which function starts it? i would like to make this list ranomized, if i am able to :-) this will be my first c code i've written.

    greatings

    wacek
    Reply With Quote  

  2. #2  
    EEUG is offline Member
    Join Date
    Jul 2005
    Posts
    1,334
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    0
    ...following statements in 'SMS_GetContainerM3U' function:
    Code:
     if (  ( int )lpFileCtx < 0  ) {
    
      SMS_List*     lpFileList = ( SMS_List* )(  ( unsigned int )lpFileCtx & 0x7FFFFFFF  );
      SMS_ListNode* lpNode     = lpFileList -> m_pHead;
    
      lpList = SMS_ListInit ();
    
      while ( lpNode ) {
    
       int lLen = strlen ( lpNode -> m_pString );
    
       lpEntry = ( _M3UEntry* )malloc (  sizeof ( _M3UEntry )  );
       lpEntry -> m_pPath    = ( char* )malloc ( lLen + 1 );
       lpEntry -> m_Duration = 0;
    
       strcpy ( lpEntry -> m_pPath, lpNode -> m_pString );
       lpNode -> m_pString[ lLen - 4 ] = '\x00';
    
       SMS_ListPushBack ( lpList, lpNode -> m_pString ) -> m_Param = ( unsigned int )lpEntry;
    
       lpNode = lpNode -> m_pNext;
    
      }  /* end while */
    
      retVal = 1;
    
      goto start;
    
     }  /* end if */
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •