Giter VIP home page Giter VIP logo

hallon-openal's Introduction

OpenAL audio drivers for Hallon

This gem supplies Hallon with the ability to stream audio through your speakers using OpenAL.

As far as API goes it follows the Hallon audio driver protocol.

Installation

gem install hallon-openal

Issues? Bugs? Feedback?

License

2-clause (simplified) BSD license. See LICENSE.txt for details.

hallon-openal's People

Contributors

burgestrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hmarr

hallon-openal's Issues

Unable to start new song after stopping

I'm pretty sure this goes here rather than regular Hallon. I may be doing something wrong, but I'm unable to get the player to start playing a new song after stopping another.

The code I'm trying to use is here:
https://github.com/swerner/rubus-jukebox/blob/master/server/lib/rubus/jukebox.rb
Just calling play with one track => works correctly and starts playing
Call stop => stops the track correctly
Call play with another track => does nothing

I traced it through hallon and it appears its making all the method calls, and the second Spotify play call fires correctly. I also attempted to just destroy the player and create a new one on play, but that gave me a buffer error. I'm not too familiar with Ruby C extensions or I'd have tried more things in hallon-openal. Let me know if I can do anything else to help track this down.

Pause not working

Hi

When I load a track and begin playing it with

track.load
player.play(track)

and then try to pause the track using

player.pause

the track will audibly pause but then when I try to resume playback the song is significantly farther along in the song than when it was first paused. The position in the song seems to be directly related to the time between the time it was paused and when it was resumed. Am i missing something?

clear audio buffer

Hi again,

Now the stop works perfect. My problem now is that when I execute this:

player.play(track2)
sleep(5)
player.stop
player.play(track3)

It starts playing track2, after 5 secs it stops. And when you try to play track3, it sounds 1-2 more seconds from track2 and then track3 starts. Is there any way to clear the buffers or the object?

Thanks for all. You are doing an excellent job.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.