1. anatoly techtonik
  2. audiosocket

Commits

anatoly techtonik  committed 806145e

Allow to be imported and used as a library.

  • Participants
  • Parent commits bfbd201
  • Branches default

Comments (0)

Files changed (1)

File audiosocket.py

View file
  • Ignore whitespace
 
 
 
-aw = AudioWriter()
-aw.open()
+if __name__ == '__main__':
+  aw = AudioWriter()
+  aw.open()
 
-df = open('95672__Corsica_S__frequency_change_approved.raw', 'rb')
-aw.play(df)
-df.close()
+  df = open('95672__Corsica_S__frequency_change_approved.raw', 'rb')
+  aw.play(df)
+  df.close()
 
-aw.close()
+  aw.close()
 
 #-- /CHAPTER 1 --