Trying the new stuff in 0.11.0

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Stifu
Prole
Posts: 21
Joined: Mon Mar 14, 2016 9:53 am
Contact:

Re: Trying the new stuff in 0.11.0

Post by Stifu » Tue Aug 08, 2017 6:43 pm

slime wrote:
Mon Aug 07, 2017 9:56 pm
It's already been renamed to getActiveEffects. :)
Nice, thanks for the info!
raidho36 wrote:
Tue Aug 08, 2017 6:44 am
As for naming - it's already been highlighted that there isn't a whole lot of consistency either way so yeah.
Well, even though the API naming may not be very consistent now, it's still worth making an effort to avoid making things any worse... unless LÖVE is really trying to compete with PHP when it comes to API inconsistencies. :p
Zabuyaki, our upcoming beat 'em up: https://www.zabuyaki.com

Santos
Party member
Posts: 373
Joined: Sat Oct 22, 2011 7:37 am

Re: Trying the new stuff in 0.11.0

Post by Santos » Mon Sep 25, 2017 3:04 pm

Here is another sound recording example, showcasing what is clearly the ultimate use case.

Speak, whistle, scream, hum, or curse into the microphone at the same time as you press any key. This can be repeated.
Attachments
recording.love
(1.65 KiB) Downloaded 12 times

josip
Prole
Posts: 3
Joined: Tue Oct 03, 2017 1:55 pm

Re: Trying the new stuff in 0.11.0

Post by josip » Mon Oct 09, 2017 4:34 pm

Did anyone try building v0.11 for Android?

I got it working by dropping 'minor' branch into love-android-sdl2 source and adding bunch of new source paths into Android.mk. I did not update OpenAL-Soft, so it's still at version 1.17.0. The most stuff I tried is working great - touch input, graphics, playing sounds, adding sound effects...

Unfortunately, recording sound does not work. The function love.audio.getRecordingDevices() returns single device. When I call getData() on that device object, I get false return value.

The adb logcat shows these lines:

Code: Select all

10-09 18:08:26.506   632   632 D audio_hw_primary: adev_open_input_stream: enter: sample_rate(16000) channel_mask(0x10) devices(0x80000004)        stream_handle(0xabb13990) io_handle(8721) source(6)
10-09 18:08:26.507   632 16737 I AudioFlinger: AudioFlinger's thread 0xabc8aa58 ready to run
10-09 18:08:26.507   632 16737 D audio_hw_primary: in_standby: enter: stream (0xabb13990) usecase(16: audio-record)
10-09 18:08:26.509   632 16737 D audio_hw_primary: in_standby: enter: stream (0xabb13990) usecase(16: audio-record)
10-09 18:08:26.512   632  1574 V AudioPolicyManagerCustom: startInput() input 8721
10-09 18:08:26.512   632  1574 E AudioPolicyManagerCustom: startInput(8721) failed: other input 8251 already started
10-09 18:08:26.513 30668 31699 E AudioRecord: start() status -38
10-09 18:08:26.513 30668 31699 E AudioProvider: recording stopped, not in RECORDSTATE_RECORDING state
10-09 18:08:26.516 30668 31699 I GsaVoiceInteractionSrv: #onClosed - Hotword is not running
10-09 18:08:26.518   632 15771 D audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xabb13990)
10-09 18:08:26.518   632 15771 D audio_hw_primary: in_standby: enter: stream (0xabb13990) usecase(16: audio-record)
It would seem that recording was started twice for some reason and it naturally fails on the second attempt. Anyone has an idea what could cause it?

User avatar
slime
Solid Snayke
Posts: 2700
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Trying the new stuff in 0.11.0

Post by slime » Mon Oct 09, 2017 5:46 pm

I believe OpenAL Soft 1.18 added audio recording support on Android.

josip
Prole
Posts: 3
Joined: Tue Oct 03, 2017 1:55 pm

Re: Trying the new stuff in 0.11.0

Post by josip » Tue Oct 10, 2017 7:51 pm

Oh, that's good to know, thanks! I actually found it changelog once you pointed that out.

I'm still struggling with building the Android project with new openal version, mostly because the Gradle stuff is something I never did before. Now the project is breaking apart so much that even the clean operation breaks with errors :awesome:

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests