Questions tagged [finch]

Finch is a simple, low-latency OpenAL sound engine for Apple iOS.

General info about Finch and a basic tutorial can be found on GitHub. If you have a question, take a look there, maybe the readme already answers it. If not, feel free to ask here. If nobody answers your question, poke zoul (at) fleuron.cz to take a look.

69 questions
1
vote
1 answer

Can Finch play sounds from in memory NSData?

Can the Finch library play sounds from NSData sources so that things recorded within the app using AVAudioRecorder can then be played back?
Philippe Sabourin
  • 8,066
  • 3
  • 31
  • 46
1
vote
1 answer

Sbt generated docker container fails to package subproject

I have a multi-project build.sbt file, with projects like so: lazy val utils = (project in file("utils")) .settings( Seq( publishArtifact := false )).[...] lazy val api = (project in file("api")) .dependsOn(utils) …
arunasm
  • 91
  • 10
1
vote
1 answer

Scala Finch post combinator: how to get the raw Request?

I need to log the raw request whenever I receive a particular post "Event" using Finch's post(). I have something like that: val myEvent: Endpoint[String] = post("somepath" :: ipRangeEndpoint :: path[Long] :: jsonBody[Event]) { (matchId: Long,…
sentenza
  • 1,608
  • 3
  • 29
  • 51
1
vote
0 answers

How Finch validationRule apply for jsonBody?

I can Validation. case class User(name: String, age: Int, email: String) val mailRule = ValidationRule[String]("mail should be mailRule")("""(\w+)@([\w\.]+)""".r.unapplySeq(_).isDefined) val child: Endpoint[User] = ( param("name") :: …
hyogo0212
  • 11
  • 2
1
vote
1 answer

How to change number of worker threads in finch/finagle?

I have a finch endpoint that works fine when sequential calls are made.in case of concurrent requests, service latency is increasing in the proportion of the number of concurrent requests.I have two questions regarding this. Is blocking of thread…
Kumar Waghmode
  • 509
  • 2
  • 18
1
vote
2 answers

How to apply filter on finch endpoint without using finagle filters?

I have more than one endpoints.I am able to apply common filters on endpoints using finagle filter.But now I want to apply a filter on a specific endpoint. How can I achieve this?
Kumar Waghmode
  • 509
  • 2
  • 18
1
vote
2 answers

Sound on the iPhone: Finch: Ensuring that sound actually plays

I am using Finch to play sound. Works great. One exception: I get an incoming call, answer the call, hang up. Go back to the app. Now sounds don't seem to play correctly anymore. What is the most resource-friendly way of ensuring they will? I guess…
Joseph Tura
  • 6,290
  • 8
  • 47
  • 73
1
vote
1 answer

Unable to find the correct SBT dependency

Today is my first day with Finch. I am unable to find the right set of SBT dependencies for finch and finagle. I have tried all the dependencies as shown in Image 2
Prateek Mane
  • 111
  • 1
  • 9
1
vote
1 answer

Finch configure response to non existing endpoint

I have an finch (0.11.1) application running on my local machine and if I do curl -XPOST localhost:8081/lfdjalfjla // some non-existing url I get a 404 response with an empty response body. Say I want to give a certain error message as a…
Phil
  • 160
  • 13
1
vote
1 answer

Why Finch using EndPoint to represent Router, Request Parameter and Request Body

In finch, we can define router, request parameters, request body like this. case class Test(name: String, age: Int) val router: Endpoint[Test] = post("hello") { Ok(Test("name", 30)) } val requestBody: Endpoint[Test] = body.as[Test] val…
Xiaohe Dong
  • 4,953
  • 6
  • 24
  • 53
1
vote
1 answer

How to turn Finch Robot by using turn function?

I have a Finch Robot, I download Finch software for Java Windows Eclipse from finchrobot site, the given software javadocs is www.finchrobot.com/javadoc/index.html, After all setup done, Now I want to insert some code to Finch Hardware.... package…
Omore
  • 614
  • 6
  • 18
1
vote
1 answer

Added AudioFileClose to prevent running out of file handles

I encountered a problem using Finch - I was opening and releasing again alot of sound files and a particular point in the project sounds would stop loading - the error code form ALOpenFileFromURL... was 43 - File not found ... my solution in the end…
Ross
  • 11
  • 1
  • 2
1
vote
1 answer

Using finch first time. How to play mp3,ogg or other formats (wav files to big)?

My *.wav's work as expected. But wav files are to big, so I want to play *.mp3 or *.ogg but it doesn't work. I use this lines of code found in the finch Demo project engine = [[Finch alloc] init]; sitar = [[Sound alloc]…
Allisone
  • 8,434
  • 4
  • 32
  • 54
1
vote
1 answer

Is the Finch audio library for iPhone capable of doing this?

I need to: - start / stop sounds with lengths between 0.1 and 10 seconds - change the playback volume I want to / would like to / would be nice to have to: - change the playback speed - change the playback pitch / frequency - pause an sound and…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
1
vote
1 answer

How can I do metering/average peak power level in OpenAL?

I'm in the process of switching from AVAudioPlayer to OpenAL using the Finch sound engine. I need to do metering, i.e. get the average peak levels. Finch sound engine does not provide this, and I'm completely new to OpenAL. How can I do this? Any…
Thaurin
  • 205
  • 3
  • 8