mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-31 21:29:39 +00:00
SC01: use max amplitude
This commit is contained in:
parent
9e9996bee7
commit
1e65528763
@ -312,14 +312,14 @@ void SSI263::Play(unsigned int nPhoneme)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DWORD volume = 0; // 0=max
|
||||||
if (!m_isVotraxPhoneme)
|
if (!m_isVotraxPhoneme)
|
||||||
{
|
volume = AMPLITUDE_MASK - (m_ctrlArtAmp & AMPLITUDE_MASK); // Invert so that: 0=max, 15=min
|
||||||
const DWORD volume = AMPLITUDE_MASK - (m_ctrlArtAmp & AMPLITUDE_MASK); // Invert so that: 0=max, 15=min
|
|
||||||
SSI263SingleVoice.nVolume = NewVolume(volume*volume, AMPLITUDE_MASK*AMPLITUDE_MASK); // logarithmic, but amplitude<8 can't be heard
|
SSI263SingleVoice.nVolume = NewVolume(volume*volume, AMPLITUDE_MASK*AMPLITUDE_MASK); // logarithmic, but amplitude<8 can't be heard
|
||||||
HRESULT hr = SSI263SingleVoice.lpDSBvoice->SetVolume(SSI263SingleVoice.nVolume);
|
HRESULT hr = SSI263SingleVoice.lpDSBvoice->SetVolume(SSI263SingleVoice.nVolume);
|
||||||
if (hr != S_OK)
|
if (hr != S_OK)
|
||||||
LogFileOutput("SSI263::Play: SetVolume(%d) res = %08X\n", SSI263SingleVoice.nVolume, hr);
|
LogFileOutput("SSI263::Play: SetVolume(%d) res = %08X\n", SSI263SingleVoice.nVolume, hr);
|
||||||
}
|
|
||||||
|
|
||||||
if (m_dbgFirst)
|
if (m_dbgFirst)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user