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
28
votes
5 answers

What do you use to play sound in iPhone games?

I have a performance-intensive iPhone game I would like to add sounds to. There seem to be about three main choices: (1) AVAudioPlayer, (2) Audio Queues and (3) OpenAL. I’d hate to write pages of low-level code just to play a sample, so that I would…
zoul
  • 102,279
  • 44
  • 260
  • 354
7
votes
1 answer

Serving Scala.js assets

I've started new project with Finch and Scala.js, where backend and frontend need to share some code. And I'm concerned about a good way to serve JS produced by fastOptJS by Finch. Currently, I'm using custom SBT task which copies files from…
chuwy
  • 6,310
  • 4
  • 20
  • 29
7
votes
1 answer

how to bind request body in Finch

Here is the code to bind request param to the router. val testReader: Endpoint[Test] = Endpoint.derive[Test].fromParams val test: Endpoint[String] = post("test" ? testReader) { t : Test => { Created("OK") }} I am using the method fromParams.…
Xiaohe Dong
  • 4,953
  • 6
  • 24
  • 53
5
votes
0 answers

could not find implicit value for evidence parameter of type io.finch.Decode.Json

Has been working on this for a couple of days and still have no clue what's going on: Got a finch web service, the build.sbt dependencies look like: "com.github.finagle" %% "finch-circe" % finchVersion changing(), "com.github.finagle" %%…
Shi Chen
  • 91
  • 2
  • 7
5
votes
1 answer

Finch: not enough arguments for method 'toService'

I've made a pretty simple rest-method using Finch and Finagle: val getUsers:Endpoint[List[User]] = get("users") {Ok(getAllUsers())} Http.serve(":8080", getUsers.toService) and got this error: Error:(50, 32) not enough arguments for method…
NikitaAbrosimov
  • 127
  • 1
  • 8
5
votes
1 answer

how to bind RequestReader to Route in Finch

I wonder how to bind RequestReader and Route together in Finch. I didnt find a complete example about it. This example is coming from finch github, and it is working properly. import io.finch.route._ import com.twitter.finagle.Httpx val api:…
Xiaohe Dong
  • 4,953
  • 6
  • 24
  • 53
3
votes
0 answers

Combining Future with Kleisli and Either on Finch endpoint

I’m hacking a bit with Finch and Cats. I ended up with an issue where my Service returns a Reader of Repository and Either as Reader[Repository, Either[List[String], Entity]]. The problem is: I need to transform the Either’s Right value to a Finch’s…
Jay Felix
  • 31
  • 3
3
votes
3 answers

Creating a `Decoder` for arbitrary JSON

I am building a GraphQL endpoint for an API using Finch, Circe and Sangria. The variables that come through in a GraphQL query are basically an arbitrary JSON object (let's assume there's no nesting). So for example, in my test code as Strings, here…
Tom Adams
  • 143
  • 1
  • 10
2
votes
1 answer

ios Finch library errors

I'm planning on using Finch in my iOS project to play audio sound effects without delay. I created a workspace with my project and Finch in. I've created the "Support" folder and linked User Header Search Paths there. Also I linked the libFinch.a to…
phmagic
  • 691
  • 8
  • 10
2
votes
2 answers

DBus Finch/Pidgin without X11

I want to do some Python scripting on my server where I can communicate with finch (A console interface of pidgin, with the interface looking like links2) through the DBus Python library to send messages or check for buddy online status. This works…
Robin
  • 81
  • 1
  • 6
2
votes
1 answer

How to Create and test a Upload file service

I am trying my hands on with Finch. New to scala and Finch I Would to know how to create and test a file upload service. aim - to upload the file and read the contents of file import java.nio.file.{Files, Paths} import com.twitter.util.{Await,…
Prateek Mane
  • 111
  • 1
  • 9
2
votes
2 answers

Circe decoder for scalaz.Maybe

Here's a simple finch server, using circe as decoder: import com.twitter.finagle.http.RequestBuilder import com.twitter.io.Buf import io.circe.generic.auto._ import io.finch._ import io.finch.circe._ case class Test(myValue: Int) val api =…
slouc
  • 9,508
  • 3
  • 16
  • 41
2
votes
2 answers

OpenAL initialization problem, iPod only (?)

I'm having a problem with OpenAL that only seems to occur with iPod hardware, and the odd thing is that it was working fine, and now it's not. I'm setting up the audio session: [[AVAudioSession sharedInstance] setCategory:…
Adam
  • 1,486
  • 3
  • 20
  • 35
2
votes
1 answer

How to combine multiple Endpoint in finch

I am trying to compose multiple Endpoint together when starting the http server. Multiple Endpoints are defined like this: val foo = get("foo") { Ok("bar") } val test = get("test") { Ok("test") } This code is working foo :+: test However,…
Xiaohe Dong
  • 4,953
  • 6
  • 24
  • 53
1
vote
1 answer

Why doesn't Finch share a single Buffer for it's polyphonic sounds?

I am doing some research and experimenting with OpenAL - specifically I am interested in techniques for polyphony - that is, playing a single sound multiple times concurrently. I came across Finch which has a feature to support this. In my own…
ajh158
  • 1,477
  • 1
  • 13
  • 32
1
2 3 4 5