Hi,
First of all, Thanks for a great library.
I am working on a simple shoutcast player project that plays a hardcoded url. Everything works fine so far and I am trying a volume control function in my project. I chose to use trackBar in Visual Studio Tools. Here's my code so far but it does not change the volume at all. All I want is volume control in my application only (not windows master volume). Here's my code for trackBar.
private void trackBar_Scroll(object sender, EventArgs e)
{
Bass.BASS_ChannelSetAttribute(-1, BASSAttribute.BASS_ATTRIB_VOL, trackBar.Value / (float)10);
// Also I am not sure if -1 used above is the right choice.
}
And this is how my stream is setup and works as it should..
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);
int channel = Bass.BASS_StreamCreateURL("http://174.37.16.73:1725", 0,
BASSFlag.BASS_DEFAULT, null, IntPtr.Zero);
if (currentState == "paused")
{
Bass.BASS_Start();
}
else
{
Bass.BASS_ChannelPlay(channel, true);
}
Any help will be so much appreciated. I have tried to explain the best I could. Please let me know.