Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 54

Thread: Play a piece of a mp3 stream with mmsystem or directsound??

  1. #11

    Play a piece of a mp3 stream with mmsystem or directsound??

    look for my email to you.
    Jarrod Davis
    Technical Director @ Piradyne Games

  2. #12

    Play a piece of a mp3 stream with mmsystem or directsound??

    I'm quite interested too. Can you also mail/PM it to me? :razz:
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  3. #13

    Play a piece of a mp3 stream with mmsystem or directsound??

    The fact that DirectX is o crappy with playing ogg (ogg and Microoft- what's that?) and mp3 is one of the reaons why I now use SDL. Playing and mixing ound FX and mp3 treams is so easy.
    Marmin^.Style

  4. #14

    Play a piece of a mp3 stream with mmsystem or directsound??

    I quickly looked at mpg123 and it seems like making a Delphi header for the DLL should not be too hard. I've not used this decoder so I have no clue to the performance or any thing. On first look it seems simple enough. But, maybe if this is combined with my DirectX audio player framework you may have a DirectX mp3 solution as well.
    Jarrod Davis
    Technical Director @ Piradyne Games

  5. #15

    Play a piece of a mp3 stream with mmsystem or directsound??

    I have converted the headers but im having strange problems :?

    with the dynamic linking i get error on mpg123_new (the program closes)

    with static linking i get error on mpg123_info (the program closes)

    dynamic linking
    http://pastebin.com/m2f53c130

    static linking
    http://pastebin.com/m47e4f72b

    code
    Code:
    var
      error : Longint;
      mp3handle : Pmpg123_handle;
      v1 : Pmpg123_id3v1;
      v2 : Pmpg123_id3v2;
      info : Tmpg123_frameinfo;
      s : PChar;
    
    function checkerror : Boolean;
    begin
      Result := mpg123_errcode(mp3handle) = 0;
      Writeln(mpg123_strerror(mp3handle));
    end;
    
    begin
      if mpg123_init <> mpg123_ok then Halt;
      s &#58;= mpg123_decoders&#40;&#41;^;
      mp3handle &#58;= mpg123_new&#40;s,@error&#41;;
      checkerror;
      mpg123_open&#40;mp3handle,'mp3.mp3'&#41;;
      checkerror;
      v1 &#58;= new&#40;Pmpg123_id3v1&#41;;
      v2 &#58;= new&#40;Pmpg123_id3v2&#41;;
      mpg123_info&#40;mp3handle,@info&#41;;
    
      mpg123_id3_&#40;mp3handle,v1,v2&#41;;
      checkerror;
      mpg123_close&#40;mp3handle&#41;;
    
    
      mpg123_exit;
      Readln;
    end.
    From brazil (:

    Pascal pownz!

  6. #16

    Play a piece of a mp3 stream with mmsystem or directsound??

    is s giving one decoder as pchar or a list of decoders as an array of pchar? If it is a list you should pick one from the list and feed that to the _new.

    See: http://www.mpg123.org/api/group__mpg...46871787956966
    http://3das.noeska.com - create adventure games without programming

  7. #17

    Play a piece of a mp3 stream with mmsystem or directsound??

    i corrected it using 'MMX' (one of the results)


    now i will try to craft a pseudo mp3player, to understand it better
    From brazil (:

    Pascal pownz!

  8. #18

    Play a piece of a mp3 stream with mmsystem or directsound??

    how do i know the amount of sleep(ms) after filling one of the buffer half ?

    im getting problems, the sound is breaking sometime
    From brazil (:

    Pascal pownz!

  9. #19

    Play a piece of a mp3 stream with mmsystem or directsound??

    i got it
    From brazil (:

    Pascal pownz!

  10. #20

    Play a piece of a mp3 stream with mmsystem or directsound??

    was your mix buffer too small?
    Jarrod Davis
    Technical Director @ Piradyne Games

Page 2 of 6 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

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