Beispiel #1
0
 public static void AudioSoundResume(object rawChannel, object rawResource, double volume, double pan)
 {
     SdlDotNet.Audio.Channel channel = (SdlDotNet.Audio.Channel)rawChannel;
     if (channel.IsPaused())
     {
         channel.Resume();
         AudioApplyVolumeAndPan(channel, volume, pan);
     }
 }
Beispiel #2
0
 public static int AudioSoundGetState(object rawChannel, object rawResource, int resourceId)
 {
     SdlDotNet.Audio.Channel channel = (SdlDotNet.Audio.Channel)rawChannel;
     if (channel.IsPlaying())
     {
         if (channel.IsPaused())
         {
             return(2);
         }
         return(1);
     }
     return(3);
 }