Skip to content

Commit

Permalink
Expose setAudioBufferSize function in python API #2
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyoodles committed Jan 12, 2018
1 parent 7d9e437 commit d35626e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions emulator/src/platform/python/mgba/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ def desiredVideoDimensions(self):
def setVideoBuffer(self, image):
self._core.setVideoBuffer(self._core, image.buffer, image.stride)

def setAudioBufferSize(self, size):
self._core.setAudioBufferSize(self._core, size)

def reset(self):
self._core.reset(self._core)
self._wasReset = True
Expand Down
1 change: 0 additions & 1 deletion src/emulator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import mgba.core, mgba.image, io, sentry


class Emulator(object):
def __init__(self, rom_path, web_server):
self.web_server = web_server
Expand Down

0 comments on commit d35626e

Please sign in to comment.