Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breakou 13 error #12

Open
jwardlaw520 opened this issue Jul 8, 2020 · 3 comments
Open

breakou 13 error #12

jwardlaw520 opened this issue Jul 8, 2020 · 3 comments

Comments

@jwardlaw520
Copy link

main.lua:83 bad argument #2 to newSource (string expected, got no value)

@Tim-X2
Copy link

Tim-X2 commented Aug 4, 2020

Same with me. Did you get it sorted? If so, please could you tell me how?

@AselG
Copy link

AselG commented Aug 6, 2020

Same issue, if someone figures it out, please let me know.

@Tim-X2
Copy link

Tim-X2 commented Aug 23, 2020

I realised the sounds and music need to be set at 'static' or 'stream'. It worked for me, hope it works for you.

gSounds = {

['paddle_hit'] = love.audio.newSource('sounds/paddle_hit.wav', 'static'),
['score'] = love.audio.newSource('sounds/score.wav', 'static'),
['wall_hit'] = love.audio.newSource('sounds/wall_hit.wav', 'static'),
['confirm'] = love.audio.newSource('sounds/confirm.wav', 'static'),
['select'] = love.audio.newSource('sounds/select.wav', 'static'),
['no-select'] = love.audio.newSource('sounds/no-select.wav', 'static'),
['brick-hit-1'] = love.audio.newSource('sounds/brick-hit-1.wav', 'static'),
['brick-hit-2'] = love.audio.newSource('sounds/brick-hit-2.wav', 'static'),
['high_score'] = love.audio.newSource('sounds/high_score.wav', 'static'),
['hurt'] = love.audio.newSource('sounds/hurt.wav', 'static'),
['pause'] = love.audio.newSource('sounds/pause.wav', 'static'),
['recover'] = love.audio.newSource('sounds/recover.wav', 'static'),
['victory'] = love.audio.newSource('sounds/victory.wav', 'static'),
['power'] = love.audio.newSource('sounds/victory.wav', 'static'),
['locked'] = love.audio.newSource('sounds/no-select.wav', 'static'),

['music'] = love.audio.newSource('sounds/music.wav', 'stream')

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants