Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Looping audio track
Started by scuba_games Sep 18 2019 01:23 PM

4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

scuba_games

[GLOBAL: userInfoPane.html]
scuba_games
  • Enthusiast

  • 31 posts
  • Corona SDK

Can anyone help with looping one track for my audio?

 

The track is a minute long and stops when it's done.  Is there a way to seamlessly loop it?

misc.gameMusic = audio.loadSound( "mellow-puzzler.wav" )
audio.pause( misc.gameMusic )


[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 944 posts
  • Corona SDK

Please put some effort into this. :D

 

Googling "corona sdk loop audio" or searching the docs for "audio loop" both return the page for audio.play(), which describes in detail how to loop audio.

 

https://docs.coronalabs.com/api/library/audio/play.html


  • nick_sherman likes this

[TOPIC: post.html]
#3

scuba_games

[GLOBAL: userInfoPane.html]
scuba_games
  • Enthusiast

  • 31 posts
  • Corona SDK

Please put some effort into this. :D

 

Googling "corona sdk loop audio" or searching the docs for "audio loop" both return the page for audio.play(), which describes in detail how to loop audio.

 

https://docs.coronalabs.com/api/library/audio/play.html

Thank you!

 

I don't know how I missed that.

 

I still get a short "blip" on-repeat.  Maybe it's a audio track issue?



[TOPIC: post.html]
#4

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 596 posts
  • Corona SDK

.mp3's can give you a blip when transitioning the an audio loop.  Try a .wav file and see if that fixes it



[TOPIC: post.html]
#5

scuba_games

[GLOBAL: userInfoPane.html]
scuba_games
  • Enthusiast

  • 31 posts
  • Corona SDK

.mp3's can give you a blip when transitioning the an audio loop.  Try a .wav file and see if that fixes it

Thank you..

 

Turns out it was tiny blank spots in the audio file. 

A quick fix with Audacity!




[topic_controls]
[/topic_controls]