Questions tagged [audiobuffer]
92 questions
1
vote
1 answer
How to continuously generate raw audio samples in javascript using the web audio API?
For a music app, I need to be able to continuously and seamlessly generate raw audio samples using the web audio API. After searching, I found out about the AudioBuffer(https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer), and it seems that…

Nikos
- 57
- 1
- 7
1
vote
1 answer
AudioBuffer Node VS MediaElement
I am working with WebAudio in HTML5. I am working with a team of devs. We are having issues with looping MP3 files. The files are authored in MP3 and printed without gaps.
I still have a slight bump during playback of the loop.
Do MediaElements…

Josh Vamos
- 11
- 4
1
vote
0 answers
Is there any way to change file FPS in javascript browser or prepare wav conventer to 60FPS videos?
I'm making web application which stores short audio files that have been cut from large video files. User uploads .mp4 file, chooses sound length and here's a little trick. Cutting audio can only be done in backend (correct me if I'm wrong) and…

SZtyro
- 11
- 1
1
vote
2 answers
JavaScript play arraybuffer as audio. Need help to solve "decodeaudiodata unable to decode audio data"
I have a .net core WebSocket server that receives live stream audio from client A, then I need to stream this live audio to client B (Browser). So I've received the byte array from client A, and I sent the byte array to client B (Browser) *The byte…

J.J
- 13
- 1
- 6
1
vote
1 answer
AudioBufferSourceNode.start() doesn't work, or at least activate but doesn t produce any sound, am i doing something wrong?
my goal is to play a sound when a specific key is pressed (me saying the letter on the key pressed), but without html audio tag, with audioBuffers from web-Audio API.
Execpt here, the audioBufferSourceNode created as an item of arraySources,…

Raphael_Bottura
- 13
- 3
1
vote
0 answers
Stream & play Audios received via TCP packets in JavaScript/Html5
I have certain TCP packets that contain audio datas in it.I am a newbie to Js and html5. I had written something like this which creates a buzzing sound. I wanted to know how audio samples look like in a TCP packet. I had captured TCP packets using…

Ameena Shafeer
- 626
- 3
- 18
1
vote
1 answer
How to skip ahead n seconds while playing track using web audio API?
Using Web Audio API, I'm trying to build an mp3 player with a "Skip ahead 15 seconds" feature.
I'm able to load an mp3 using a source buffer, and can get it to start playing. I want to do something like this, though I know currentTime is not a…

Andy R.
- 199
- 2
- 13
1
vote
0 answers
InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable?
i have an app that's creating an audio context and then decoding multiple audio files to get audio buffers on page load (on component mount in react) ,
everything is going as expected , handling errors and all .
but there's one that i don't know…

soufiane yakoubi
- 861
- 11
- 31
1
vote
0 answers
In AVAudioEngine The AVAudioPlayerNode output doesn't seem to be the AVAudioUnitNode input
I attached an AVAudioPlayerNode to an AVAudioEngine, defined a File linked to the playerNode. I attached an AVAudioUnitNode linked to my own AUAudioUnit.
First time. I connected the playerNode directly to the mainMixerNode and when i start playing…

JLDB
- 31
- 3
1
vote
2 answers
How to convert that UnsafeMutablePointer> variable into AudioBufferList?
I have this EZAudio method in my Swift project, to capture audio from the microphone:
func microphone(microphone: EZMicrophone!, hasAudioReceived bufferList: UnsafeMutablePointer>, withBufferSize bufferSize: UInt32,…

Josh
- 6,251
- 2
- 46
- 73
1
vote
1 answer
How to create AudioBuffer(Audio) from NSdata
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection {
AudioBufferList audioBufferList;
NSMutableData *data= [NSMutableData data];
…

WENHUI
- 71
- 3
1
vote
0 answers
Change tempo of audio file without changing the pitch of the clip
I created a audiocontext instance suing web audio , and loaded the music file as a audiobuffer into it and i can play the songs now , and my question is:Is there any way i can set tempo of the audiosource(audiobuffer) by any node and play…

Niyaz
- 2,677
- 3
- 21
- 40
1
vote
0 answers
Load NSData from AudioBufferList into AVAudioPlayer
From a delegate method I am receiving an AudioBufferList while I am recording audio. I am trying to collect the data from the AudioBufferList and save it so I can load it into my AVAudioPlayer but the AVAudioPlayer throws an error and I am unable to…

Kevin Jacob
- 11
- 4
1
vote
1 answer
How to play audio from buffer in Android
I am trying to play audio from buffer which is streamed from android to android.
Tried using AudioTrack which works for PCM format only.To play MP3, I am looking to use MediaPlayer but it doesn't support playing from buffer.How can I make it work?

Arunraj Shanmugam
- 147
- 2
- 17
1
vote
0 answers
Adding a delay to android sound output
So I wrote this piece for an Android App. The idea is simple:
Detect whether sound is playing and if yes open the BluethoothSCO Channel so the audio gets played there.
I want to use it to "route" the navigation direction infos to my car speaker. It…

JohanKingston
- 11
- 4