MusicBrainz :: Disid.

MusicBrainz LibDiscid ¶óÀ̺귯¸® ¿ë Perl ÀÎÅÍÆäÀ̽º
Áö±Ý ´Ù¿î·Îµå

MusicBrainz :: Disid. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • GPL
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Nicholas J Humfrey
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://www.aelius.com/~njh/

MusicBrainz :: Disid. ű×


MusicBrainz :: Disid. ¼³¸í

MusicBrainz LibDiscid ¶óÀ̺귯¸®¸¦À§ÇÑ Perl ÀÎÅÍÆäÀ̽º MusicBrainz :: Discid´Â µå¶óÀ̺êÀÇ ¿Àµð¿À CD¿¡¼­ MusicBrainz Disid¸¦ °è»êÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ÄÚµù ½ºÅ¸ÀÏÀº PERLÀÇ °´Ã¼ ÁöÇâ ±â´ÉÀ» »ç¿ëÇϱ⠶§¹®¿¡ Libdiscid¿¡ ´ëÇÑ C ÀÎÅÍÆäÀ̽º¿Í ¾à°£ ´Ù¸¨´Ï´Ù. musicbrainz :: discid :: default_device ()ÀÌ Ç÷§ÆûÀÇ ±âº» ÀåÄ¡ÀÇ ÀåÄ¡ ¹®ÀÚ¿­À» ¸®ÅÏÇÕ´Ï´Ù .musicbrainz :: Discid :: NEW () »õ DISID °´Ã¼¸¦ ±¸¼ºÇÕ´Ï´Ù. ¼±ÅÃÀû Àμö·Î ID¸¦ ÀÐÀ» ¼öÀÖ´Â ÀåÄ¡ÀÇ À̸§ÀÌ Á¦°ø µÉ ¼ö ÀÖ½À´Ï´Ù. ¿©±â¿¡ ÀåÄ¡¸¦ ÁöÁ¤ÇÏ¸é ³ªÁß¿¡ Àб⠸޼ҵå·Î ID¸¦ ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù. $ DISID-> error_msg () $ discid-> first_track_num ()ÀÇ ¸¶Áö¸· ¿À·ù¿¡ ´ëÇÑ »ç¶÷ÀÌ ÀÐÀ» ¼öÀÖ´Â ¿À·ù ¸Þ½ÃÁö¸¦ ¹ÝȯÇÕ´Ï´Ù. ÀÌ µð½ºÅ©ÀÇ Ã¹ ¹ø° Æ®·¢ (ÀϹÝÀûÀ¸·Î 1). id°¡ ¾ÆÁ÷ ÀÐÇôÁöÁö ¾ÊÀº °æ¿ì Undef¸¦ ¹ÝȯÇÕ´Ï´Ù. $ discid-> last_track_num ()ÀÌ µð½ºÅ©ÀÇ ¸¶Áö¸· Æ®·¢ÀÇ ¹øÈ£¸¦ ¹ÝȯÇÕ´Ï´Ù. $ discid-> id () µð½ºÇø®µå¸¦ ¹®ÀÚ¿­·Î ¹ÝȯÇÕ´Ï´Ù. id°¡ ¾ÆÁ÷ ÀÐÇôÁöÁö ¾ÊÀº °æ¿ì Undef¸¦ ¹ÝȯÇÕ´Ï´Ù. $ discid-> last_track_num ()ÀÌ µð½ºÅ©ÀÇ ¸¶Áö¸· Æ®·¢ÀÇ ¹øÈ£¸¦ ¹ÝȯÇÕ´Ï´Ù. ID°¡ ¾ÆÁ÷ ÀÐÇôÁöÁö ¾ÊÀº °æ¿ì Undef¸¦ ¹ÝȯÇÕ´Ï´Ù. $ DISID-> PUT ($ FIRST_TRACK, $ ¼½ÅÍ, $ OFFSET1, $ OFFSET2, ...) TOC°¡ ÀÌÀü¿¡ ÀÐÇôÁö°í µð½ºÅ©¸¦ °è»êÇÏ·Á´Â °æ¿ìÀÌ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ID´Â µð½ºÅ© µå¶óÀ̺꿡 ¾×¼¼½ºÇÏÁö ¾Ê°í Discid-> Read () ÁÖ¾îÁø ÀåÄ¡¿¡¼­ µð½ºÅ© ID¸¦ ÀнÀ´Ï´Ù. ÀåÄ¡°¡ Á¦°øµÇÁö ¾ÊÀº °æ¿ì Ç÷§ÆûÀÇ ±âº» ÀåÄ¡°¡ »ç¿ëµË´Ï´Ù. ¿À·ù°¡ ¹ß»ýÇϸéÀÌ ÇÔ¼ö´Â false¸¦ ¹ÝȯÇÏ°í $ discid-> error_msg ()¿¡ ¾×¼¼½º ÇÒ ¼öÀÖ´Â ¿À·ù ¸Þ½ÃÁö¸¦ ¼³Á¤ÇÕ´Ï´Ù. $ discid-> ¼½ÅÍ () ¼½ÅÍÀÇ µð½ºÅ©ÀÇ ±æÀ̸¦ ¹ÝȯÇÕ´Ï´Ù. id°¡ ¾ÆÁ÷ ÀÐÇôÁöÁö ¾ÊÀº °æ¿ì Undef¸¦ ¹ÝȯÇÕ´Ï´Ù. $ discid-> submisation_url () µð½º ºò¿¡ ´ëÇÑ Á¦Ãâ URLÀ» ¹®ÀÚ¿­·Î ¹ÝȯÇÕ´Ï´Ù. id°¡ ¾ÆÁ÷ ÀÐÇôÁöÁö ¾ÊÀº °æ¿ì Undef¸¦ ¹ÝȯÇÕ´Ï´Ù. $ discid-> track_length ($ track_num)´Â ¼½ÅÍÀÇ Æ®·¢ ±æÀ̸¦ ¹ÝȯÇÕ´Ï´Ù. $ DISID-> TRACK_OFFSET ($ track_num) Æ®·¢ÀÇ ¼½ÅÍ ¿ÀÇÁ¼ÂÀ» ¹ÝȯÇÕ´Ï´Ù. $ DISID-> WebService_URL ( ) DISIDÀÇ ¹®ÀÚ¿­ÀÇ WebService URLÀ» ¹®ÀÚ¿­·Î ¹ÝȯÇÕ´Ï´Ù. ID°¡ ¾ÆÁ÷ ÀÐÇôÁöÁö ¾ÊÀº °æ¿ì Undef¸¦ ¹ÝȯÇÕ´Ï´Ù. Synopsis´Â MusicBrainz :: Discid¸¦ »ç¿ëÇÕ´Ï´Ù. MY $ DISID = MusicBrainz :: Discid-> New (); if ($ disk-> read () == 0) {print stderr "¿À·ù :". $ discid-> error_msg (). ...¿¡ " "; exit (1);}"DISDID : ". $ DISID-> ID ()¸¦ ÀμâÇϽʽÿÀ." "; ¿ä±¸ »çÇ× : ¡¤ Perl.


MusicBrainz :: Disid. °ü·Ã ¼ÒÇÁÆ®¿þ¾î