홈페이지 : http://scripts.one.pl/tclmixer/
TclMixer 확장 패키지는 SDL_mixer의 강력한 기능을 Tcl 환경에서 사용할 수 있게 합니다. 내장 소프트웨어 믹서를 사용하여 여러 개의 사운드를 동시에 재생할 수 있습니다. 지원하는 사운드 포맷은 WAV/RIFF, MP3, OGG, MID(미디), MOD(표준 MOD 모듈뿐만 아니라 S3M, IT, XM도 포함)입니다. 3D 사운드 위치 지정, 스테레오 밸런스, 페이드 인/아웃, 음원 거리와 같은 유용한 기본 효과들도 구현되어 있습니다. 이 모든 기능들이 잘 알려진 간단한 Tcl 문법으로 제공됩니다. 이 확장 기능을 사용하려면 최종 사용자는 SDL(버전 1.2.x)과 SDL_mixer(버전 1.2.x)가 설치되어 있어야 합니다.
TclMixer extension brings SDL_mixer power into Tcl evirnoment. It allows to play multiple sounds at the same time using built-in software mixer. It supports following sound formats: WAV/RIFF, MP3, OGG, MID (midi), MOD (including standart MOD modules, but also S3M, IT, XM). There are basic effects implemented, which would be very useful, such as 3D sound positioning, stereo balance, fading in/out and sound source distance. All these goodies closed in well known, simple Tcl syntax. To make this extension work, end-user has to got installed SDL (in version 1.2.x) and SDL_mixer (in version 1.2.x).
package require TclMixer 1.2
namespace import tclmixer::*
proc soundCallback {chan} {
puts "Playback finished at channel $chan"
}
mixConfig -sound soundCallback
set snd [sound some_file.ogg]
button .b -text "Play" -command "play $snd"
pack .b
'Tcl & Tk > 확장 패키지 (Extension Package)' 카테고리의 다른 글
Sugar 0.1 (0) | 2025.08.27 |
---|---|
yajl-tcl 1.8.1 (0) | 2025.08.27 |
SMARTPACK (0) | 2025.08.27 |
Extral 2.1.0 (0) | 2025.08.27 |
tcljudy 1.0.1 (0) | 2025.08.27 |