Bugs item #3602435, was opened at 2013-01-28 11:49
Message generated for change (Comment added) made by uklauer
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3602435&group_id=10706
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: jpcote (jpcote)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unhandled buffer overrun
Initial Comment:
If I try to play a sound by specifying the type as 'coreaudio', I receive a ton
of such warning messages : "./play WARN coreaudio: coreaudio: unhandled buffer
overrun. Data discarded."
While those messages are being output, if I press CTRL-C, the sound plays
normally on my internal speakers. Here are examples of problematic commands :
./play -t coreaudio "MOTU UltraLite mk3" F_2.aiff
./play -t coreaudio default F_2.aiff:
The problem remains if I set my MOTU UltraLite mk3 interface as the default via
the Sound Control Panel. However, if I issue the following command, it plays
fine over my internal speakers :
./play sound.aiff
The same command seems to work on my MOTU interface (when set as default) but
the sound is crackling. This is probably a different problem, though.
I tried compiling directly on my machine (Retina MacBook) and the problem
remains. I'm attaching the output of the installcheck should that be of any
help. Here is the output with -V -V :
F_2.aiff:
File Size: 172k Bit Rate: 1.41M
Encoding: Signed PCM
Channels: 2 @ 16-bit
Samplerate: 44100Hz
Replaygain: off
Duration: 00:00:00.98
In:100% 00:00:00.98 [00:00:00.00] Out:43.0k [ | ] Hd:5.0 Clip:0
Done.
DjipBook:sox-14.4.0 jpcote$ ./play -V -V -t coreaudio "MOTU UltraLite mk3"
F_2.aiff
./play: SoX v14.4.0
time: Mar 4 2012 16:54:02
uname: Darwin DjipBook.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18
16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64
compiler: gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
arch: 1248 48 44 L OMP
./play INFO formats: detected file format type `aiff'
./play INFO aiff: Unity MIDI Note: 0
./play INFO aiff: Low MIDI Note: 0
./play INFO aiff: High MIDI Note: 0
./play INFO coreaudio: Found Audio Device "AirPlay"
./play INFO coreaudio: Found Audio Device "Built-i"
./play INFO coreaudio: Found Audio Device "Built-i"
./play INFO coreaudio: Found Audio Device "Adobe E"
./play INFO coreaudio: Found Audio Device "After E"
./play INFO coreaudio: Found Audio Device "After E"
./play INFO coreaudio: Found Audio Device "Prelude"
./play INFO coreaudio: Found Audio Device "Premier"
./play INFO coreaudio: Found Audio Device "MOTU Ul"
./play DBUG coreaudio: audio device did not accept 2 channels. Use 8 channels
instead.
Input File : 'MOTU UltraLite mk3' (coreaudio)
Channels : 8
Sample Rate : 44100
Precision : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
Input File : 'F_2.aiff'
Channels : 2
Sample Rate : 44100
Precision : 16-bit
Duration : 00:00:00.98 = 42998 samples = 73.1259 CDDA sectors
File Size : 172k
Bit Rate : 1.41M
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : big
Reverse Nibbles: no
Reverse Bits : no
./play INFO formats: can't set 8 channels; using 2
Output File : 'default' (coreaudio)
Channels : 2
Sample Rate : 44100
Precision : 24-bit
Sample Encoding: 32-bit Floating Point PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
Input File : 'MOTU UltraLite mk3' (coreaudio)
Channels : 8
Sample Rate : 44100
Precision : 32-bit
Sample Encoding: 32-bit Signed Integer PCM
./play DBUG remix: 0:
./play DBUG remix: 0 0.25
./play DBUG remix: 2 0.25
./play DBUG remix: 4 0.25
./play DBUG remix: 6 0.25
./play DBUG remix: 1:
./play DBUG remix: 1 0.25
./play DBUG remix: 3 0.25
./play DBUG remix: 5 0.25
./play DBUG remix: 7 0.25
./play INFO sox: effects chain: input 44100Hz 8 channels (multi) 32
bits 00:00:00.00
./play INFO sox: effects chain: channels 44100Hz 2 channels (multi) 32
bits 00:00:00.00
./play INFO sox: effects chain: output 44100Hz 2 channels (multi) 24
bits 00:00:00.00
./play DBUG sox: automatically entering interactive mode
In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
./play WARN coreaudio: coreaudio: unhandled buffer overrun. Data discarded.
----------------------------------------------------------------------
>Comment By: Ulrich Klauer (uklauer)
Date: 2013-01-28 13:02
Message:
All file arguments that you hand to "play" are considered *input* files. A
command like
play -t coreaudio "MOTU UltraLite mk3" F_2.aiff
is equivalent to
sox -t coreaudio "MOTU UltraLite mk3" F_2.aiff -d
and means: Read audio from the soundcard (followed by the file, when you
press CTRL-C) and play it back on the default audio device. What you want
to do is apparently either to set the AUDIODEV environment variable to
"MOTU UltraLite mk3", then run
play F_2.aiff ,
or to run
sox F_2.aiff -t coreaudio "MOTU UltraLite mk3"
(note "sox", not "play" here).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3602435&group_id=10706
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
SoX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-devel