Android Question Create/play a continuous tone

goldmagnet

Member
Licensed User
Longtime User
Hello

A simple thing to explain, I have an app idea where I need to generate a continuous(no gaps) tone while the app is running. All I need is start, stop and frequency, anyone have any ideas ?

Thanks

Huw
 

ebasic

Member
Licensed User
Longtime User
Dim MP As MediaPlayer 'should be done in Sub Process_Globals

Then later maybe

MP.Initialize2("MP")
MP.Load(File.DirAssets, "song.mp3")
MP.Looping =True
MP.Play
 
Upvote 0

goldmagnet

Member
Licensed User
Longtime User
Hello

Thanks for the reply.

I need to programatically change the frequency being played, so I dont think a media play will work.

Thanks

Huw
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Hello

Thanks for the reply.

I need to programatically change the frequency being played, so I dont think a media play will work.

Thanks

Huw

Have a look at the swt1-3.zip demo in audiotrack. It creates a sine wave on the fly which you should be able to tailor to your needs.
 
Upvote 0
Top