Audio sound can play but have problem

Hi, I am newbie in corona. Currently i working on some app but after add in some sound it can run but the show “[…\src\libmpg123\frame.c:820] error : end sample count smaller than gapless end! <48384<48913>.”  Can anyone help me solve this problem?

 

Here is my code:


– scenetemplate.lua


local storyboard = require( “storyboard” )

local scene = storyboard.newScene()


– 

– NOTE:

– Code outside of listener functions (below) will only be executed once,

– unless storyboard.removeScene() is called.

– 



– BEGINNING OF YOUR IMPLEMENTATION


local function returnmainmenu( event )

tapChannel = audio.play( tapSound )

storyboard.gotoScene(“menu”,“slideRight”)

end

local function info1( event )

tapChannel = audio.play( tapSound )

storyboard.gotoScene(“menu”)

end

local function right1( event )

tapChannel = audio.play( tapSound )

storyboard.gotoScene(“menu”)

end

local aSound = audio.loadStream(“sound/alphabet/a.mp3”)

local function a1( event )

audio.play( aSound )

end

– Called when the scene’s view does not exist:

function scene:createScene( event )

local group = self.view


– CREATE display objects and add them to ‘group’ here.

– Example use-case: Restore ‘group’ from previously saved state.

background = display.newImageRect( “background/UI_sebutanABC.png”, 1370,768)

background.x = display.contentWidth/2

background.y = display.contentHeight/2

group:insert(background)

mainmenu = display.newImageRect( “button/home.png”, 120,120)

mainmenu.x = display.contentWidth/30

mainmenu.y = display.contentHeight* 22/24

group:insert(mainmenu)

info = display.newImageRect( “button/info.png”,  120,120)

info.x = display.contentWidth/6.0

info.y = display.contentHeight* 22/24

group:insert(info)

left = display.newImageRect( “button/previous-1.png”,  120,120)

left.x = display.contentWidth/3.35

left.y = display.contentHeight* 22/24

group:insert(left)

right = display.newImageRect( “button/next.png”,  120,120)

right.x = display.contentWidth/2.3

right.y = display.contentHeight* 22/24

group:insert(right)

a = display.newImageRect( “image/Combine/Aa.png”,348,250)

a.x = display.contentWidth/4

a.y = display.contentHeight/3

group:insert(a)

chicken = display.newImageRect( “image/image_word/chicken.png”,282,413)

chicken.x = display.contentWidth/1.6

chicken.y = display.contentHeight/1.6

group:insert(chicken)


end

– Called immediately after scene has moved onscreen:

function scene:enterScene( event )

local group = self.view

storyboard.removeAll()


– INSERT code here (e.g. start timers, load audio, start listeners, etc.)


mainmenu:removeEventListener (“touch”, returnmainmenu)

mainmenu:addEventListener (“touch”, returnmainmenu)

info:removeEventListener (“touch”, info1)

info:addEventListener (“touch”, info1)

right:removeEventListener (“touch”, right1)

right:addEventListener (“touch”, right1)

a:removeEventListener (“touch”, a1)

a:addEventListener (“touch”, a1)

end

– Called when scene is about to move offscreen:

function scene:exitScene( event )

local group = self.view


– INSERT code here (e.g. stop timers, remove listeners, unload sounds, etc.)

mainmenu:removeEventListener (“touch”, returnmainmenu)

info:removeEventListener (“touch”, info1)

right:removeEventListener (“touch”, right1)

a:removeEventListener (“touch”, a1)


end

– Called prior to the removal of scene’s “view” (display group)

function scene:destroyScene( event )

local group = self.view


– INSERT code here (e.g. remove listeners, widgets, save state, etc.)


end


– END OF YOUR IMPLEMENTATION


– “createScene” event is dispatched if scene’s view does not exist

scene:addEventListener( “createScene”, scene )

– “enterScene” event is dispatched whenever scene transition has finished

scene:addEventListener( “enterScene”, scene )

– “exitScene” event is dispatched before next scene’s transition begins

scene:addEventListener( “exitScene”, scene )

– “destroyScene” event is dispatched before view is unloaded, which can be

– automatically unloaded in low memory situations, or explicitly via a call to

– storyboard.purgeScene() or storyboard.removeScene().

scene:addEventListener( “destroyScene”, scene )


return scene

You apparently have a bad sound file. 

I usually open up the offending file in Audacity, and re-export it as a .wav to fix it. 

Hi I already change it to a.wav but this time is showing warning not the problem of ‘[…\src\libmpg123\frame.c:820] error : end sample count smaller than gapless end! <48384<48913>.’ in the console log. Show it is ok?

You apparently have a bad sound file. 

I usually open up the offending file in Audacity, and re-export it as a .wav to fix it. 

Hi I already change it to a.wav but this time is showing warning not the problem of ‘[…\src\libmpg123\frame.c:820] error : end sample count smaller than gapless end! <48384<48913>.’ in the console log. Show it is ok?