K
kouchun
Unregistered / Unconfirmed
GUEST, unregistred user!
左聲道,右聲道的功能用下面的api實現了,但這個api只能在一個喇叭出聲音,我想實現的功能是兩個聲道同時出左聲或右聲!! 我用了mciExecute(Pchar('SetAudio c:/song.dat source to average'));但沒有成功,不知誰有這方面的經驗,謝了!!
//左聲道(成功)
mcisendstring('set all audio all off',nil,0,handle);
mcisendstring('set all audio left on',nil,0,handle);
//右聲道(成功)
mcisendstring('set all audio all off',nil,0,handle);
mcisendstring('set all audio right on',nil,0,handle);
//兩喇叭同時出右聲道(失敗)
mcisendstring('set all audio all off',nil,0,handle);
mcisendstring('set all audio right on',nil,0,handle);
mciExecute(Pchar('SetAudio c:/song.dat source to average'));
//左聲道(成功)
mcisendstring('set all audio all off',nil,0,handle);
mcisendstring('set all audio left on',nil,0,handle);
//右聲道(成功)
mcisendstring('set all audio all off',nil,0,handle);
mcisendstring('set all audio right on',nil,0,handle);
//兩喇叭同時出右聲道(失敗)
mcisendstring('set all audio all off',nil,0,handle);
mcisendstring('set all audio right on',nil,0,handle);
mciExecute(Pchar('SetAudio c:/song.dat source to average'));