extras; samples: Fixed warnings
[sdk] / samples / audio / DirectBufferPlayer / wavPlayer.ec
index 4346806..b9c87db 100644 (file)
@@ -2,7 +2,7 @@ import "EcereAudio"
 
 class Form1 : Window
 {
-   text = "Form1";
+   caption = "Form1";
    background = activeBorder;
    borderStyle = sizable;
    hasMaximize = true;
@@ -15,7 +15,7 @@ class Form1 : Window
 
    Button button1
    {
-      this, text = "Play", position = { 200, 168 };
+      this, caption = "Play", position = { 200, 168 };
 
       bool NotifyClicked(Button button, int x, int y, Modifiers mods)
       {
@@ -27,7 +27,7 @@ class Form1 : Window
 
    bool OnPostCreate()
    {
-      if(sound.Load("test.wav"))
+      if(sound.Load("sweep.wav"))
       {
          AudioSpec wantedSpec
          {
@@ -50,7 +50,7 @@ class Form1 : Window
          return true;
       }
       else
-         MessageBox { contents = "test.wav not found" }.Modal();
+         MessageBox { contents = "sweep.wav not found" }.Modal();
       return false;
    }