Sha256: ca8db523593db9ac5d3c298ef31f5c457c6648200a973aa4bb199052452ac56a

Contents?: true

Size: 435 Bytes

Versions: 4

Compression:

Stored size: 435 Bytes

Contents

require 'audiofile'

# Version 0.2: This script now works OK and does not fail.
# In an older version it caused Ruby to segfault (inside audiofile).

# change for your setup.
WORKING_AUDIO_FILE = "/home/jaredj/plasmoid.wav"

begin
    bytes_read = 10000
    while bytes_read > 0
        print bytes_read, " "
        bytes_read = bytes_read - 1
    end
rescue
end

begin
    f = AudioFile.new WORKING_AUDIO_FILE
    f.close
rescue
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
catori-0.2.5 ./ext/audiofile/fail.rb
catori-0.2.5 ext/audiofile/fail.rb
catori-0.2.6 ./ext/audiofile/fail.rb
catori-0.2.6 ext/audiofile/fail.rb