Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cardlist.py
diff options
context:
space:
mode:
authorMuriel de Souza Godoi <muriel@laptop.org>2007-11-29 18:26:26 (GMT)
committer Muriel de Souza Godoi <muriel@laptop.org>2007-11-29 18:26:26 (GMT)
commit635e5e5ae55b00e4085a838beae7fd30bd8a3124 (patch)
tree0c0bcd9074579e5a5305fe9cfb5689da34dd22d4 /cardlist.py
parentdad22b884a1850563e115b7ec6dcdd06d39e276a (diff)
Adds support to record ogg files and add mime-type icon
Diffstat (limited to 'cardlist.py')
-rw-r--r--cardlist.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cardlist.py b/cardlist.py
index 05518ec..daa9de1 100644
--- a/cardlist.py
+++ b/cardlist.py
@@ -149,9 +149,9 @@ class CardList(gtk.EventBox):
asnd = self.pairs[pair].get_sound(1)
if asnd != None:
if equal_pairs:
- asndfile = 'snd'+str(pair)+'.wav'
+ asndfile = 'snd'+str(pair)+'.ogg'
else:
- asndfile = 'asnd'+str(pair)+'.wav'
+ asndfile = 'asnd'+str(pair)+'.ogg'
_logger.error(asndfile+': '+ asnd)
zip.write(asnd, join('sounds', asndfile))
pair_card.set_property('asnd', asndfile)
@@ -160,9 +160,9 @@ class CardList(gtk.EventBox):
bsnd = self.pairs[pair].get_sound(2)
if bsnd != None:
if equal_pairs:
- bsndfile = 'snd'+str(pair)+'.wav'
+ bsndfile = 'snd'+str(pair)+'.ogg'
else:
- bsndfile = 'bsnd'+str(pair)+'.wav'
+ bsndfile = 'bsnd'+str(pair)+'.ogg'
zip.write(bsnd, join('sounds', bsndfile))
_logger.error(bsndfile+': '+ bsnd)
pair_card.set_property('bsnd', bsndfile)