Sound - ilovethisid/Educational-Ascii-Game-engine GitHub Wiki
Sound componentλ νΉμ μ΄λ²€νΈ λ°μν λ λ± μ¬μ©μκ° μνλ μμ μ μ리λ₯Ό μ¬μνκ²λ λμμ£Όλ μν μ ν©λλ€.
playSound
μμ νμΌμ μμΉλ₯Ό μ λ ₯νμ¬ μ리λ₯Ό μ¬μν©λλ€. λ¨, μ¬μ κ°λ₯ν μμ νμΌμ ν¬λ§·μ WAVE(.wav)μλ§ νμ ν©λλ€.
Usage
playSound ( file )
Arguments
| Name | Value | Description |
|---|---|---|
| file | std::string | μ¬μν μμ νμΌ μμΉμ μλκ²½λ‘λͺ λλ μ λκ²½λ‘λͺ μ μ λ ₯ν©λλ€. |
Example
Sound my_sound = Sound();
my_sound.playSound("file_path");