When I press the home button and exit the app, streaming stops or I cannot hear.
How can I continue streaming in background and listen it from lock screen?
See this in stackoverflow
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: [.mixWithOthers...
On some Android devices (different Android versions from 5 to and including 13), audio is played, on...
With this code I can recover audio focus (sdk 30). But how do you abandon the audio focus?
This code does not work :
jo.RunMethod("abandonAudioFocus", Array(event)) or jo.RunMethod("abandonAudioFocusRequest", Array(event))
I need to create an AudioFocusRequest with...
A prototype of a modular system for generating and processing signals in audible range. Oscillator module will generate a basic waveform signal then some calculations can be conducted on these signals via modules/connections, finally the signal goes to speaker and scope for observation.
Hi everybody! Thank you Erel for this great thing!
I have been using B4A for a long time, and decided to improve some sound synthesis projects.
I used AudioTrack library because I need to synthesize sound mathematically - noises and waves as data arrays.
It works great so far. But I see a lot...
Made a mini synth in B4J to investigate how it works with generated wave visualization.
Basically it has two oscillators (osc a and b) to generate signals according to a waveform shape of sine, pulse, saw and random noise and its frequency is determined by the music note being played. Each...
I attached simple example for streaming audio from B4A to B4J over internet using MQTT.
Enjoy without limitations of Server/Client problems over internet such as ISP block.
You can use this approach to create a lot of things such as Radio station, voice call, etc ...
As I'm aware, in Android, when you connect an USB audio device this automatically replace internal audio device, but when a Bluetooth audio headset is connected, you can select between Bluetooth, Speaker or earpiece (as in the Phone app). It is possible to simultaneously use in an application...
I am using B4XPages in my project.
There is a TTS module which is supposed to play even when screen is turned off.
It plays for a while then pauses and resumes only when screen is unlocked ( probably as long as tts queue is clear)
So after a lot of forum search - using a service seems to be the...
When I upload files to my FTP server, they are uploaded there "broken". Garbage appears instead of the expected audio track. Is this a problem with the server itself or am I doing something wrong? files are mp3 audio messages that I record using the VoiceRecording library
I would be glad for...
Hello everyone, I am developing a chat that should support audio messages. But I can't imagine how to implement them in this code (seekbar instead of text). I did not find anything similar on the forum, perhaps someone has already implemented such functionality or can help me with advice
An easy way to take/record/choose photo/video/audio with this small class (clMedia.bas).
No permission needed
It uses intents to call default app.
3 constants for media type
cPhoto = 0
2 constants for origin
1 method to call with 2 parameters (media...
Sine wave generator for PC, output from the sound card. I used audioTrack lib, thank you @stevel05, https://www.b4x.com/android/forum/threads/jaudiotrack.37973/#content
The code writes repeatedly an array of 36 samples of a sine wave to the sound card. The frequency is determent by the...
I'm using an unusual title to this thread because we are having a problem with Samsung S10 devices running Android 11. We are not sure if the problem is with Samsung or Android 11 or a combination of both, but it's causing many of our customers to complain that audio on existing...
A sound recorder and playback for Arduino Uno or Nano with ATMEGA328P device using SD card. The card is initialized by the rSD lib and then the code reset the ATMEGA SPI to the code settings. The code uses commands for multi sector reading and writing that don't exist in the rSD library.
Because I dont find an easy to use Folderplayer in the GooglePlayStore I have written my own.
You can see and download the Player at https://play.google.com/store/apps/details?id=de.cleanMusikSD.com&hl=en_US&gl=US
The main functions are:
► Play audio and video files
► folder structure
Not a tutorial exactly but a fast prototyping for basic Karplus-Strong algorithm realized by B4J and would like to share with someone who is interested.
I want to make my GuitarRhythm app using synth guitar sound as an option along with sampled guitar sound so I found this:
BeeperDeLuxe is a B4A Lib.
sound a beep tone
vibrate the phone
sound and vibrate
sound intermitting alarmtone
DurationMillisecond: the duration of the sound, vibration or alarm.
To use you need to implement libs as followes: