private void button3_Click(object sender, EventArgs e) // PLAY BUTTON OK
{
// Inicializar
Bass.BASS_Init(-1,44100,BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);
// Codigo para funcionar o play
int stream = Bass.BASS_StreamCreateFile(@"c:\mp3\forest.mp3", 0, 0, BASSFlag.BASS_DEFAULT);
// Depois de tantas tenatativas descobri !! é preciso definir o volume do player !
Bass.BASS_ChannelSetAttribute(stream, BASSAttribute.BASS_ATTRIB_VOL, ((float)volume));
Bass.BASS_ChannelPlay(stream, false);
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Cafony/Chat-Bass.net-Teste
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
C# Winform bass.dll Test. Finaly make it work :-). You need to add the line that defines volume so you can ear sound.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
