look for my email to you.
look for my email to you.
Jarrod Davis
Technical Director @ Piradyne Games
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.
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
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
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 := mpg123_decoders()^; mp3handle := mpg123_new(s,@error); checkerror; mpg123_open(mp3handle,'mp3.mp3'); checkerror; v1 := new(Pmpg123_id3v1); v2 := new(Pmpg123_id3v2); mpg123_info(mp3handle,@info); mpg123_id3_(mp3handle,v1,v2); checkerror; mpg123_close(mp3handle); mpg123_exit; Readln; end.
From brazil (:
Pascal pownz!
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
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!
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!
i got it
From brazil (:
Pascal pownz!
was your mix buffer too small?
Jarrod Davis
Technical Director @ Piradyne Games
Bookmarks