Skip to content

C# Winform bass.dll Test. Finaly make it work :-). You need to add the line that defines volume so you can ear sound.

Notifications You must be signed in to change notification settings

Cafony/Chat-Bass.net-Teste

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

    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);            
    }

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

No packages published

Languages