Questions tagged [audiobuffer]
92 questions
1
vote
0 answers
How to set Left, Center and Right headphone as Default iPhone?
I am using AudioComponentInstance for listing audio from Mice and play it in headphone directly. Now, I have to play audio if left, right or center as we have in default iPhone settings.
As there is a property called “pan” in AVAudioPlayer to set…

Nirmalsinh Rathod
- 5,079
- 4
- 26
- 56
1
vote
0 answers
Amplify audiobuffer xcode ios
I have AudioBuffer as shown below. It can play through the speaker. I would like to know a way to amplify those buffer before I play. How shall I modify?
/**
This callback is called when the audioUnit needs new data to play through the
speakers.…

Khant Thu Linn
- 5,905
- 7
- 52
- 120
1
vote
1 answer
Add buffering bar in audio player
I'm working with HTML5, making an audio player.
I wonder to know how I can add a buffer bar so that the user can see how long the song is loaded.
I've tried using several properties that I saw in some tutorials, but none have worked, and I can not…

Tomás Juárez
- 1,517
- 3
- 21
- 51
0
votes
0 answers
How to convert pcm16Audio to .wav then to a base64 string
I'm using a voice capture SDK that returns a pcm16Audio representation of the capture. I need to convert this to wav, then convert the wav to base64 to send to an API.
This is the function in the SDK that returns the pcm16Audio:
async…

Chris Oppedal
- 373
- 2
- 3
- 11
0
votes
0 answers
How to convert CChar audio buffer into AVAudioPCMBuffer?
I'm working on ZoomMeetingSDK integration for my Mac app. SDK streams audio buffers once a user joins the meeting. I'm trying to convert these audio buffers into AVAudioPCMBuffer so that i can generate a live transcripts by leveraging…
0
votes
0 answers
Applying audio effects from p5.js sound library to AudioBuffer source
I'm working on p5.js web editor to create a program that from a an input audio files, divide it in segment, random shuffle them, and recompose them. this part of the program is working well and the new output audio generate with random order…
0
votes
0 answers
audioContext.decodeAudioData() works once per browser page reload, then gives error for each subsequent call
I have a local file blob URL of this format:
"blob:http://127.0.0.1:1234/6d25b61d-9799-4814-baba-13bb3a988dfd"
which I turn into an audio buffer using fetch() and decodeAudioData , then I play that buffer using Tone.Player, looped…

The doobverse
- 21
- 4
0
votes
1 answer
How to make just audio flutter handler always play stream from live position, not from saved position after pause?
After pausing icecast radio player app with just audio and audio service packages from Ryan Heise, I wait a little and tap play again, the stream continues to play from saved position with data in buffers, then suddenly (I think when buffers are…

Simon
- 13
- 3
0
votes
1 answer
Modify AudioBuffer volume in JavaScript
How can modify AudioBuffer volume in javascript ?
I just wanna modify AudioBuffer volume without play any sound and without use any gain.
Finally , I wanna to have a new AudioBuffer with modified volume.

Ehsan
- 3
- 1
0
votes
0 answers
Why is AudioBufferSourceNode not consistent
I am rendering a music visualizer in multiple chunks and am having a hard time getting one chunk to transition into the next one gracefully.
I am looking for a way to get frequency data based on a specific time or frame and have it return the same…

Michael Joseph Aubry
- 12,282
- 16
- 70
- 135
0
votes
2 answers
MIX AUDIO: Adding audio buffers
I have 2 or more audio frames structured as:
int sample_rate; // The sample-rate of this buffer (48000 or 44100 normaly)
int no_channels; // The number of audio channels
int no_samples; // The number of audio samples per channel…
0
votes
1 answer
Should a WAV audio file be twice size as an Audio Buffer?
I have a JS webaudio AudioBuffer which I convert to WAV using 3rd party code, and the length / size of WAV is always at least twice the size of the AudioBuffer. As I am handling long duration audio (multi MB) its a potential issue.
My AudioBuffer…

Gavin
- 1
- 2
0
votes
1 answer
using WebAudio AnalyserNode.getFloatFrequencyData() to shift pitch of a BufferSource
I have a BufferSource, which I create thusly:
const proxyUrl = location.origin == 'file://' ? 'https://cors-anywhere.herokuapp.com/' : '';
const request = new XMLHttpRequest();
request.open('GET', proxyUrl +…

Marc
- 1,812
- 4
- 23
- 36
0
votes
1 answer
Noise and distortion in Swift implementation of SDL audio callback
I'm currently building a game music player in Swift for Mac OS, using GME for generating sound buffers and SDL for audio playback. I have previously (and successfully) used SDL_QueueAudio for playback, but I need more fine tuned control over the…

Joneth
- 91
- 1
- 9
0
votes
1 answer
How to play an array of [Int16] audio samples from memory in Swift
Trying to build a game music player (NSF, SPC etc) for Mac, using the GME library.
I have spent hours upon hours testing so many solutions and tips here on SO, but it seems no solution works well. I have tried many variants of the…

Joneth
- 91
- 1
- 9