From 635e5e5ae55b00e4085a838beae7fd30bd8a3124 Mon Sep 17 00:00:00 2001 From: Muriel de Souza Godoi Date: Thu, 29 Nov 2007 18:26:26 +0000 Subject: Adds support to record ogg files and add mime-type icon --- (limited to 'cardlist.py') 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) -- cgit v0.9.1