| 744 | } |
| 745 | |
| 746 | void CSound::SetChannel(int ChannelId, float Vol, float Pan) |
| 747 | { |
| 748 | dbg_assert(ChannelId >= 0 && ChannelId < NUM_CHANNELS, "ChannelId invalid"); |
| 749 | |
| 750 | const CLockScope LockScope(m_SoundLock); |
| 751 | m_aChannels[ChannelId].m_Vol = (int)(Vol * 255.0f); |
| 752 | m_aChannels[ChannelId].m_Pan = (int)(Pan * 255.0f); // TODO: this is only on and off right now |
| 753 | } |
| 754 | |
| 755 | void CSound::SetListenerPosition(vec2 Position) |
| 756 | { |