Giter Site home page Giter Site logo

warhammerkid / ruby-audio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nrolland/ruby-audio

108.0 108.0 27.0 1.26 MB

ruby-audio wraps around libsndfile to provide simplified sound reading and writing support to ruby programs

Home Page: http://doc.chromedshark.com/ruby-audio/

License: GNU General Public License v2.0

C 62.06% Ruby 37.94%

ruby-audio's People

Contributors

fugalh avatar mgomes avatar nrolland avatar warhammerkid avatar zmack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-audio's Issues

require': libsndfile.so.1: cannot open shared object file

I can use ruby-audio perfectly fine on my dev machine (mac os x lion). However, on amazon ec2 (rhel), after bundle installing the gem successfully, I get the following error when trying to start my app:

/usr/local/rvm/gems/ruby-1.9.3-p194/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:6:in require': libsndfile.so.1: cannot open shared object file: No such file or directory - /usr/local/rvm/gems/ruby-1.9.3-p194/gems/ruby-audio-1.6.1/lib/rubyaudio_ext.so (LoadError) from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:6:inrescue in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/ruby-audio-1.6.1/lib/ruby-audio.rb:1:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in block (2 levels) in require' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in block in require' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in require' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.1/lib/bundler.rb:128:inrequire'
from /var/www/anrthis_staging/releases/20130107020957/config/application.rb:7:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:39:inrequire'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:39:in <top (required)>' from script/rails:6:inrequire'
from script/rails:6:in `

'

Any ideas what could be the cause for this?

Thanks.

Can't install on Windows using v1.4.0

I am still unable to get this installed, even after your excellent-looking changes. Following are the output of gem_make.out and mkmf.log:

C:/Ruby/bin/ruby.exe extconf.rb --with-sndfile-dir=C:/Program Files (x86)/Mega-Nerd/libsndfile --with-sndfile-include=c:/program files (x86)/mega-nerd/libsndfile/include
checking for sndfile.h in /opt/local/include,/usr/local/include,C:/Program Files/Mega-Nerd/libsndfile/include... yes
checking for sf_open() in -lsndfile-1... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=C:/Ruby/bin/ruby
    --with-sndfile-dir
    --with-sndfile-include=${sndfile-dir}/include
    --with-sndfile-lib
    --without-sndfile-lib=${sndfile-dir}/lib
    --with-sndfile-1lib
    --without-sndfile-1lib
extconf.rb:23:in `<main>':   Can't find libsndfile (http://www.mega-nerd.com/libsndfile/) (RuntimeError)

  Try passing --with-sndfile-dir or --with-sndfile-lib and --with-sndfile-include
  options to extconf.

Here's mkmf.log:

find_header: checking for sndfile.h in /opt/local/include,/usr/local/include,C:/Program Files/Mega-Nerd/libsndfile/include... -------------------- yes

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L.      -lmsvcrt-ruby191-static  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: int main() {return 0;}
/* end */

"gcc -E -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses   conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <sndfile.h>
/* end */

--------------------

find_library: checking for sf_open() in -lsndfile-1... -------------------- no

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L.      -lmsvcrt-ruby191-static -lsndfile-1  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: 
6: /*top*/
7: int main() {return 0;}
8: int t() { void ((*volatile p)()); p = (void ((*)()))sf_open; return 0; }
/* end */

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L.      -lmsvcrt-ruby191-static -lsndfile-1  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: 
6: /*top*/
7: int main() {return 0;}
8: int t() { sf_open(); return 0; }
/* end */

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L/opt/local/lib -L.      -lmsvcrt-ruby191-static -lsndfile-1  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: 
6: /*top*/
7: int main() {return 0;}
8: int t() { void ((*volatile p)()); p = (void ((*)()))sf_open; return 0; }
/* end */

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L/opt/local/lib -L.      -lmsvcrt-ruby191-static -lsndfile-1  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: 
6: /*top*/
7: int main() {return 0;}
8: int t() { sf_open(); return 0; }
/* end */

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L/usr/local/lib -L.      -lmsvcrt-ruby191-static -lsndfile-1  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: 
6: /*top*/
7: int main() {return 0;}
8: int t() { void ((*volatile p)()); p = (void ((*)()))sf_open; return 0; }
/* end */

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L/usr/local/lib -L.      -lmsvcrt-ruby191-static -lsndfile-1  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: 
6: /*top*/
7: int main() {return 0;}
8: int t() { sf_open(); return 0; }
/* end */

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L"C:/Program Files/Mega-Nerd/libsndfile" -L.      -lmsvcrt-ruby191-static -lsndfile-1  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: 
6: /*top*/
7: int main() {return 0;}
8: int t() { void ((*volatile p)()); p = (void ((*)()))sf_open; return 0; }
/* end */

"gcc -o conftest -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby/include/ruby-1.9.1/ruby/backward -IC:/Ruby/include/ruby-1.9.1 -I. -Ic:/program -IC:/Program/include     -O2 -g -Wall -Wno-parentheses  conftest.c  -L. -LC:/Ruby/lib -LC:/Program/lib -L"C:/Program Files/Mega-Nerd/libsndfile" -L.      -lmsvcrt-ruby191-static -lsndfile-1  -lshell32 -lws2_32  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: 
6: /*top*/
7: int main() {return 0;}
8: int t() { sf_open(); return 0; }
/* end */

--------------------

System is Ruby 1.9.1p243, gem v1.3.7 on Windows 7x64 using http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.23-w32-setup.exe

Only in Memory?

Hi

Is it possible to use your lib to work on memory data ? like a wav file that it is stored in a database...

It's working if I stored the file from database to a tempory file, making the conversation of the tempory to an other temporary, and put the new content in the database ...

Regards
Vincent

Incorrect number of channels in write

I used the following code to copy a 'wav' file:

#!/usr/local/bin/ruby 
require 'rubygems'
require 'ruby-audio'
require 'pp'

snd1 = RubyAudio::Sound.open('/Users/wms5f/data/m1f1.wav')
snd2 = RubyAudio::Sound.open("/Users/wms5f/data/m1f1_2.wav", 'w', snd1.info.clone)
# Create wav output file
buf = RubyAudio::Buffer.double(1000)
puts snd2.info.samplerate
puts snd2.info.format
puts snd2.info.channels
read = snd1.read(buf)
puts snd1.info.samplerate
puts snd1.info.format
puts snd1.info.channels
while read != 0
  puts snd1.info.channels
  puts snd2.info.channels
  snd2.write(buf)
  read = snd1.read(buf)
end
snd1.close
snd2.close

The output was as follows:

8000
65553
2
8000
65553
2
2
2
RubyAudio::Error: channel count mismatch: 1 vs 2

method write    in audioTest3.rb at line 20
method <main>   in audioTest3.rb at line 20

I don't understand how one of the open files could have a setting of 1 channel.

Any thoughts?

Some pointers on how to (cross?) compile this code?

Hi warhammerkid,

I am trying to run the rake gems command, which apparently cross-compiles all the code. I installed MinGW for OS X.

This fails on OS X, because the FLAC headers cannot be found (but are installed on my machine using homebrew) when compiling libsndfile. Here is the first line with an error from tmp/i386-mingw32/ports/libsndfile/1.0.24/compile.log.

    CC     flac.lo
    flac.c:34:33: error: FLAC/stream_decoder.h: No such file or directory

Can you give some pointers how to build this project? Should I just ignore the Rakefile altogether if I want to build it for my own system?

Thanks,
Roel

using gem in vendor

Hi, I´ve copied the gem in the vendor folder for use on heroku, but gets this error message when i try to use it with the waveform gem

ruby-audio-1.6.1/lib/ruby-audio.rb:6:in `require': no such file to load -- rubyaudio_ext (LoadError)

Any suggestions to a solution?

sound.rb:35:in `initialize': File does not exist or is not a regular file (possibly a pipe?). (RubyAudio::Error)

@warhammerkid Could you please say why it does not work? I try to run audio-playback, but it seems that what fails is ruby-audio:

36-156% /opt/local/libexec/ruby3.3/playback /Users/svacchanda/Downloads/JENNIE_SOLO.mp3 
/opt/local/lib/ruby3.3/gems/3.3.0/gems/ruby-audio-1.6.1/lib/ruby-audio/sound.rb:35:in `initialize': File does not exist or is not a regular file (possibly a pipe?). (RubyAudio::Error)
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/ruby-audio-1.6.1/lib/ruby-audio/sound.rb:35:in `initialize'
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/audio-playback-0.0.8/lib/audio-playback/file.rb:11:in `open'
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/audio-playback-0.0.8/lib/audio-playback/file.rb:11:in `initialize'
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/audio-playback-0.0.8/lib/audio-playback/sound.rb:16:in `new'
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/audio-playback-0.0.8/lib/audio-playback/sound.rb:16:in `load'
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/audio-playback-0.0.8/lib/audio-playback.rb:43:in `block in play'
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/audio-playback-0.0.8/lib/audio-playback.rb:43:in `map'
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/audio-playback-0.0.8/lib/audio-playback.rb:43:in `play'
	from /opt/local/lib/ruby3.3/gems/3.3.0/gems/audio-playback-0.0.8/bin/playback:73:in `<top (required)>'
	from /opt/local/libexec/ruby3.3/playback:25:in `load'
	from /opt/local/libexec/ruby3.3/playback:25:in `<main>'

Can't install on Windows

Win7x64; Ruby 1.9.1; RubyGems v1.3.7
Installed http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.23-w64-setup.exe
Tried to install ruby-audio, failed:

C:\>gem install ruby-audio --verbose
GET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
Installing gem ruby-audio-1.3.0
Downloading gem ruby-audio-1.3.0.gem
GET http://rubygems.org/gems/ruby-audio-1.3.0.gem
connection reset after 2 requests, retrying
GET http://rubygems.org/gems/ruby-audio-1.3.0.gem
302 Found
GET http://production.cf.rubygems.org/gems/ruby-audio-1.3.0.gem
200 OK
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/README.rdoc
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/Rakefile
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/LICENSE
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/lib/ruby-audio/buffer.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/lib/ruby-audio/sound.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/lib/ruby-audio/sound_info.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/lib/ruby-audio.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/spec/buffer_spec.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/spec/sound_info_spec.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/spec/sound_spec.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/spec/spec_helper.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/spec/spec.opts
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/spec/data/what.wav
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/spec/data/what2.wav
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/spec/data/what.mp3
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/extconf.rb
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/ra_buffer.c
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/ra_sound.c
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/ra_soundinfo.c
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/rubyaudio_ext.c
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/ra_buffer.h
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/ra_sound.h
C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/ra_soundinfo.h
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-audio:
        ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb
checking for sf_open() in -lsndfile... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby/bin/ruby
        --with-sndfilelib
        --without-sndfilelib
extconf.rb:8:in `<main>': You need to install libsndfile (http://www.mega-nerd.com/libsndfile/) (RuntimeError)


Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.9.1/gems/ruby-audio-1.3.0/ext/gem_make.out

Compilation fails with default compiler flags on Ubuntu 13.10 (at least)

On Ubuntu 13.10 (and possibly other systems with the default compiler flag -Werror=format-security) the gem native extension will fail to build. You can get around this by installing with gem install ruby-audio --with-cflags=-Wno-error=format-security but I suppose the C-extension should be updated to not cause a security error (or at least a note added somewhere, I'm not a C expert so not sure what really should be done to remedy).

Compiling fails on Raspbian

I'm trying to compile ruby-audio on a Raspberry Pi running Rasbian, but compilation fails. Here is the error (full log below):

compiling ra_sound.c
ra_sound.c: In function ‘ra_sound_init’:
ra_sound.c:155:5: error: format not a string literal and no format arguments [-Werror=format-security]

Apparently format-security compiler flag is breaking the build. I have tried to compile with -Wno-format-security, but still the build fails with the same error.

Any idea how to fix this?


Here is the full log:

$ gem install ruby-audio
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-audio:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
checking for sndfile.h in /opt/local/include,/usr/local/include,C:/Program Files (x86)/Mega-Nerd/libsndfile/include,C:/Program Files/Mega-Nerd/libsndfile/include... yes
checking for sf_open() in -lsndfile-1... no
checking for sf_open() in -lsndfile... yes
checking for SF_FORMAT_OGG in sndfile.h... yes
creating Makefile

make
compiling ra_soundinfo.c
compiling rubyaudio_ext.c
compiling ra_sound.c
ra_sound.c: In function ‘ra_sound_init’:
ra_sound.c:155:5: error: format not a string literal and no format arguments [-Werror=format-security]
ra_sound.c: In function ‘ra_sound_read_short’:
ra_sound.c:258:1: warning: unused variable ‘channels’ [-Wunused-variable]
ra_sound.c: In function ‘ra_sound_read_int’:
ra_sound.c:259:1: warning: unused variable ‘channels’ [-Wunused-variable]
ra_sound.c: In function ‘ra_sound_read_float’:
ra_sound.c:260:1: warning: unused variable ‘channels’ [-Wunused-variable]
ra_sound.c: In function ‘ra_sound_read_double’:
ra_sound.c:261:1: warning: unused variable ‘channels’ [-Wunused-variable]
ra_sound.c: At top level:
ra_soundinfo.h:10:14: warning: ‘ra_soundinfo_allocate’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:11:14: warning: ‘ra_soundinfo_free’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:14:14: warning: ‘ra_soundinfo_valid’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:15:14: warning: ‘ra_soundinfo_frames’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:16:14: warning: ‘ra_soundinfo_samplerate’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:17:14: warning: ‘ra_soundinfo_samplerate_set’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:18:14: warning: ‘ra_soundinfo_channels’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:19:14: warning: ‘ra_soundinfo_channels_set’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:20:14: warning: ‘ra_soundinfo_format’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:21:14: warning: ‘ra_soundinfo_format_set’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:22:14: warning: ‘ra_soundinfo_sections’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:23:14: warning: ‘ra_soundinfo_seekable’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:24:14: warning: ‘ra_buffer_allocate’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:25:14: warning: ‘ra_buffer_free’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:28:14: warning: ‘ra_buffer_init’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:29:14: warning: ‘ra_buffer_init_copy’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:30:14: warning: ‘ra_buffer_channels’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:31:14: warning: ‘ra_buffer_size’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:32:14: warning: ‘ra_buffer_real_size’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:33:14: warning: ‘ra_buffer_real_size_set’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:34:14: warning: ‘ra_buffer_type’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:35:14: warning: ‘ra_buffer_each’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:36:14: warning: ‘ra_buffer_aref’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:37:14: warning: ‘ra_buffer_index_get’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:38:14: warning: ‘ra_buffer_aset’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:39:13: warning: ‘ra_buffer_index_set’ declared ‘static’ but never defined [-Wunused-function]
cc1: some warnings being treated as errors
make: *** [ra_sound.o] Error 1


Gem files will remain installed in /var/lib/gems/1.9.1/gems/ruby-audio-1.6.1 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ruby-audio-1.6.1/ext/rubyaudio_ext/gem_make.out

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.