Fixed issues related to sound unable to be played
This commit is contained in:
parent
5d804b2d8e
commit
4bdd2b3894
@ -132,7 +132,7 @@ class postController(object):
|
|||||||
if i["type"] == "photo":
|
if i["type"] == "photo":
|
||||||
if self.load_images == False: self.load_images = True
|
if self.load_images == False: self.load_images = True
|
||||||
self.images.append(i)
|
self.images.append(i)
|
||||||
attachments.append(extract_attachment(i))
|
attachments.append(utils.add_attachment(i))
|
||||||
self.attachments.append(i)
|
self.attachments.append(i)
|
||||||
# Links in text are not treated like normal attachments, so we'll have to catch and add those to the list without title
|
# Links in text are not treated like normal attachments, so we'll have to catch and add those to the list without title
|
||||||
# We can't get a title because title is provided by the VK API and it will not work for links as simple text.
|
# We can't get a title because title is provided by the VK API and it will not work for links as simple text.
|
||||||
|
@ -9,6 +9,7 @@ import sound_lib
|
|||||||
import output
|
import output
|
||||||
from mysc.repeating_timer import RepeatingTimer
|
from mysc.repeating_timer import RepeatingTimer
|
||||||
from mysc.thread_utils import call_threaded
|
from mysc.thread_utils import call_threaded
|
||||||
|
from sound_lib import output, input
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
class soundSystem(object):
|
class soundSystem(object):
|
||||||
@ -32,8 +33,8 @@ class soundSystem(object):
|
|||||||
self.config = soundConfig
|
self.config = soundConfig
|
||||||
# Set the output and input default devices.
|
# Set the output and input default devices.
|
||||||
try:
|
try:
|
||||||
self.output = sound_lib.output.Output()
|
self.output = output.Output()
|
||||||
self.input = sound_lib.input.Input()
|
self.input = input.Input()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
# Try to use the selected device from the configuration. It can fail if the machine does not has a mic.
|
# Try to use the selected device from the configuration. It can fail if the machine does not has a mic.
|
||||||
|
Loading…
Reference in New Issue
Block a user