SoundGet

»ç¿îµå âġ·ÎºÎÅÍ ´Ù¾çÇÑ ¼³Á¤À» ¿­¶÷ÇÕ´Ï´Ù (À½¼Ò°Å, º¼·ý µîµî.)

SoundGet, OutputVar [, ComponentType, ControlType, DeviceNumber]

¸Å°³º¯¼ö

OutputVar

¿­¶÷µÈ ¼³Á¤À» ÀúÀåÇÒ º¯¼öÀÇ À̸§, 0ºÎÅÍ 100 (Æ÷ÇÔ) »çÀÌÀÇ ºÎµ¿ ¼Ò¼öÁ¡ ¼öÀ̰ųª ¶Ç´Â ´Ü¾î ONÀ̳ª OFFÀÔ´Ï´Ù. (used only for ControlTypes ONOFF, MUTE, MONO, LOUDNESS, STEREOENH, ±×¸®°í BASSBOOST). ÀÌ º¯¼ö´Â ¼³Á¤À» ¿­¶÷ÇÏ´Â µ¥ ¹®Á¦°¡ ÀÖ¾úÀ¸¸é ºñ¿öÁý´Ï´Ù. ºÎµ¿ ¼Ò¼öÁ¡ ¼öÀÇ Çü½ÄÀº, ¿¹¸¦ µé¾î ¼Ò¼öÁ¡ÀÇ À§Ä¡´Â, SetFormat¿¡ ÀÇÇÏ¿© °áÁ¤µË´Ï´Ù.

ComponentType

ºñ¾î ÀÖ°Å³Ä »ý·«Çϸé, ±âº» °ªÀº ´Ü¾î MASTERÀÔ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é, ´ÙÀ½ ´Ü¾î Áß Çϳª°¡ µÉ ¼ö ÀÖ½À´Ï´Ù: MASTER (SPEAKERS¿Í µ¿ÀǾî), DIGITAL, LINE, MICROPHONE, SYNTH, CD, TELEPHONE, PCSPEAKER, WAVE, AUX, ANALOG, HEADPHONES, ¶Ç´Â N/A. »ç¿îµå ÀåÄ¡¿¡ ÁöÁ¤µÈ ComponentTypeÀÌ ¾øÀ¸¸é, ErrorLevelÀº ±× ¹®Á¦¸¦ ³ªÅ¸³¾ °ÍÀÔ´Ï´Ù.

¾î¶² ¹Í¼­¿¡¼­ ¶óº§ÀÌ AuxiliaryÀÎ ÄÞÆ÷³ÍÆ®´Â AUX°¡ ¾Æ´Ï¶óANALOG·Î Á¢±ÙÇÒ ¼ö ÀÖ½À´Ï´Ù.

»ç¿îµå ÀåÄ¡¿¡ ComponentTypeÀÇ ½Çü°¡ ¿©·µÀ̸é (¿¹¸¦ µé¾î µÎ Á¾·ùÀÇ LINEÀÌ ÀÖÀ¸¸é), º¸Åë ù ¹ø°¿¡ ¿¬ÁÖ ¼³Á¤ÀÌ ´ã±â°í µÑ °¿¡ ³ìÀ½ ¼³Á¤ÀÌ ´ã±é´Ï´Ù. ù ¹ø° ¸»°í ´Ù¸¥ ½Çü¿¡ Á¢±ÙÇÏ·Á¸é, ½ÖÁ¡°ú ¼ýÀÚ¸¦ ÀÌ ¸Å°³º¯¼ö¿¡ Ãß°¡ÇϽʽÿÀ. ¿¹¸¦ µé¾î: Analog:2´Â ¾Æ³¯·Î±× ÄÄÆ÷³ÍÆ®ÀÇ µÎ¹ø° ½Çü¶ó´Â ¶æÀÔ´Ï´Ù.

ControlType

ºñ¾î Àְųª »ý·«Çϸé, ±âº» °ªÀº VOLUMEÀÔ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é, ´ÙÀ½ ´Ü¾î Áß Çϳª°¡ µÉ ¼ö ÀÖ½À´Ï´Ù: VOLUME (¶Ç´Â VOL), ONOFF, MUTE, MONO, LOUDNESS, STEREOENH, BASSBOOST, PAN, QSOUNDPAN, BASS, TREBLE, EQUALIZER, ¶Ç´Â À¯È¿ÇÑ ÄÜÆ®·Ñ À¯ÇüÀÇ ¹øÈ£ (»ç¿îµåÄ«µå ºÐ¼® ½ºÅ©¸³Æ® ÂüÁ¶). ÁöÁ¤µÈ ComponentType¿¡ ÁöÁ¤µÈ ControlTypeÀÌ ¾øÀ¸¸é, ErrorLevelÀº ±× ¹®Á¦¸¦ ¾Ë·ÁÁÙ °ÍÀÔ´Ï´Ù.

ÁÖÀÇ: »ç¿îµå ÀåÄ¡´Â º¸Åë VOLUME (¶Ç´Â VOL) ±×¸®°í MUTE¸¸ Áö¿øÇÕ´Ï´Ù. ¹°·Ð ´Ù¸¥ °Íµéµµ À©µµ¿ìÁî ¹öÀü°ú »ç¿îµå ÀåÄ¡¿¡ µû¶ó »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

DeviceNumber

1ºÎÅÍ Áö¿øµÇ´Â ÀåÄ¡ÀÇ ÃÑ °³¼ö±îÁöÀÇ ¼ýÀÚ. ÀÌ ¸Å°³º¯¼ö¸¦ »ý·«Çϸé, ±âº» °ªÀº 1ÀÔ´Ï´Ù (ù ¹ø° »ç¿îµå ÀåÄ¡), ¾Æ´Ï¸é Windows Vista À̻󿡼­ ¿¬ÁÖ¸¦ À§ÇÑ ½Ã½ºÅÛÀÇ ±âº» ÀåÄ¡ÀÔ´Ï´Ù. ÀÌ ¸Å°³º¯¼ö´Â Ç¥Çö½ÄÀÏ ¼ö ÀÖ½À´Ï´Ù. »ç¿îµåÄ«µå ºÐ¼® ½ºÅ©¸³Æ®°¡ ¾î´À ¹øÈ£¸¦ »ç¿ëÇؾßÇÒÁö °áÁ¤ÇÏ´Â µ¥ µµ¿òÀ» ÁÙ °ÍÀÔ´Ï´Ù.

ErrorLevel

[v1.1.04+] ÀÌ ¸í·É¾î´Â ½ÇÆнà ¿¹¿Ü¸¦ ´øÁú ¼ö ÀÖ½À´Ï´Ù. ´õ ÀÚ¼¼ÇÑ Á¤º¸´Â ½ÇÇà½Ã°£ ¿¡·¯¸¦ ÂüÁ¶ÇϽʽÿÀ.

ErrorLevel´Â ¸í·É¾î°¡ ¼º°øÇϸé 0ÀÌ ¼³Á¤µË´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é ´ÙÀ½ ¹®±¸ Áß Çϳª°¡ ¼³Á¤µË´Ï´Ù:

Invalid Control Type or Component Type (À¯È¿ÇÏÁö ¾ÊÀº ÄÜÆ®·Ñ À¯ÇüÀ̳ª ÄÄÆ÷³ÍÆ® À¯Çü)
Can't Open Specified Mixer (ÁöÁ¤µÈ ¹Í¼­¸¦ ¿­ ¼ö ¾øÀ½)
Mixer Doesn't Support This Component Type (¹Í¼­°¡ ÀÌ ÄÞÆ÷³ÍÆ® À¯ÇüÀ» Áö¿øÇÏÁö ¾ÊÀ½)
Mixer Doesn't Have That Many of That Component Type (¹Í¼­°¡ ÁöÁ¤ÇÑ ¸¸Å­ ¸¹Àº ÄÞÆ÷³ÍÆ® À¯ÇüÀÌ ¾øÀ½)
Component Doesn't Support This Control Type (ÄÄÆ÷³ÍÆ®°¡ ÀÌ ÄÜÆ®·Ñ À¯ÇüÀ» Áö¿øÇÏÁö ¾ÊÀ½)
Can't Get Current Setting (ÇöÀç ¼³Á¤À» ¾òÀ» ¼ö ¾øÀ½)

³íÆò

Windows Vista ÀÌÈÄ´Â v1.1.10ºÎÅÍ Áö¿øÇÕ´Ï´Ù.

½Ã½ºÅÛ¿¡ ¼³Ä¡µÈ »ç¿îµå ÀåÄ¡ (¹Í¼­)ÀÇ ´É·ÂÀ» ¾Ë¾Æ³»·Á¸é -- ¿¹¸¦ µé¾î, ÄÄÆ÷ÅÏÆ® À¯Çü°ú ÄÜÆ®·Ñ À¯Çü -- ´ÙÀ½ »ç¿îµåÄ«µå ºÐ¼® ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇϽʽÿÀ.

¿Àµð¿À¸¦ ´õ ¼¶¼¼ÇÏ°Ô Á¦¾îÇÏ·Á¸é, VA ¶óÀ̺귯¸®ÀÇ »ç¿ëÀ» °í·ÁÇØ º¸½Ê½Ã¿À.

¼³Á¤À» ¹Ù²Ù·Á¸é SoundSetÀ» »ç¿ëÇϽʽÿÀ.

°ü·Ã Ç׸ñ

SoundSet, SoundGetWaveVolume, SoundSetWaveVolume, SoundPlay

¿¹Á¦

SoundGet, master_volume
MsgBox, ¸¶½ºÅÍ º¼·ýÀº %master_volume% ÆÛ¼¾Æ®ÀÔ´Ï´Ù.

SoundGet, master_mute, , mute
MsgBox, ¸¶½ºÅÍ À½¼Ò°Å´Â ÇöÀç %master_mute%ÀÔ´Ï´Ù.

SoundGet, bass_level, Master, bass
if ErrorLevel
    MsgBox, ¿¡·¯ ¼³¸í: %ErrorLevel%
else
    MsgBox, MASTER¿¡ ´ëÇÑ BASS ·¹º§Àº %bass_level% ÆÛ¼¾Æ®ÀÔ´Ï´Ù.

SoundGet, microphone_mute, Microphone, mute
if microphone_mute = Off
    MsgBox, ¸¶ÀÌÅ©·ÎÆùÀÌ À½¼Ò°ÅµÇÁö ¾Ê¾Ò½À´Ï´Ù.