Recording audio from game to mp3/ogg/wav?

Get help using Construct 2

Post » Wed Aug 17, 2016 6:24 pm

I'd like to be able to record the audio output of my game to the user's hard-drive without using microphones or preferably the windows mixer, but actually stream the audio data to a file and save it. If that's not possible, can it be done via recording the user's soundcard audio?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Wed Aug 17, 2016 7:27 pm

Since you're limited to HTML5's APIs, I don't think you'll be able to do anything crazy like interact directly with a soundcard.

I searched and these examples of capturing HTML5 audio, you may be able to interface with one of these libraries or examples.

http://www.html5rocks.com/en/tutorials/ ... dia/intro/

http://stackoverflow.com/questions/1641 ... io-to-file

These should at least give you an idea of what kinda limitations there are. I haven't done any called to external JS code from within Construct2, but I'm sure you could find help to figure that out.
B
8
S
3
Posts: 14
Reputation: 680

Post » Thu Aug 18, 2016 7:15 am

sonofbryce wrote:Since you're limited to HTML5's APIs, I don't think you'll be able to do anything crazy like interact directly with a soundcard.

I searched and these examples of capturing HTML5 audio, you may be able to interface with one of these libraries or examples.

http://www.html5rocks.com/en/tutorials/ ... dia/intro/

http://stackoverflow.com/questions/1641 ... io-to-file

These should at least give you an idea of what kinda limitations there are. I haven't done any called to external JS code from within Construct2, but I'm sure you could find help to figure that out.


Thanks for that, it's quite funny cod I would have thought since you can use webcam interaction and stuff, it might be easily possible. Instead of capturing there sound card, is there a way of streaming the audio from the output of the game to a file?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Thu Aug 18, 2016 7:16 am

Maybe @gigatron has some ideas? 🤓
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Thu Aug 18, 2016 2:41 pm

Zebbi wrote:Maybe @gigatron has some ideas? 🤓

@Zebbi

Yes, i will soon drop shader fx and start with Plugin and Behaviour coding.
All problem have their solution, i believe this.
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
61
S
20
G
29
Posts: 815
Reputation: 22,093

Post » Thu Aug 18, 2016 5:42 pm

Gigatron wrote:
Zebbi wrote:Maybe @gigatron has some ideas? 🤓

@Zebbi

Yes, i will soon drop shader fx and start with Plugin and Behaviour coding.
All problem have their solution, i believe this.


Really? What kind of implementation do you have in mind? Does webaudio have some sort of realtime audio render/stream to disk functionality?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Thu Aug 18, 2016 8:09 pm

@Zebbi

Really? What kind of implementation do you have in mind? Does webaudio have some sort of realtime audio render/stream to disk functionality?

I don't know if webaudio api have such feature ... i will look this soon..
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
61
S
20
G
29
Posts: 815
Reputation: 22,093


Return to How do I....?

Who is online

Users browsing this forum: plinkie, rayolf and 7 guests