bglusman / noisy

Automatically exported from code.google.com/p/noisy
0 stars 0 forks source link

No sound #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Noisy 
2. Attempt to use it 
3.

What is the expected output? What do you see instead?
The expected output is white or Pink noise but I get only silence. 

What version of the product are you using? On what operating system?
Noisy 1.2, OS X 10.5.5 

Please provide any additional information below.
This problem is occurring on a MacBook. 

Original issue reported on code.google.com by JeremyO...@gmail.com on 20 Sep 2008 at 2:33

GoogleCodeExporter commented 9 years ago
I've also noticed this. Does it work when you plug in some headphones? It works 
when I plug in headphones, but 
not through the MacBook's speakers.

Original comment by heyb...@gmail.com on 20 Sep 2008 at 7:28

GoogleCodeExporter commented 9 years ago
I just tried plugging in some headphones and it works then. Is this the way this
program was built to be used or is this a bug? I would love to be able to use it
through my built in speakers as apposed to just headphones. 

Original comment by JeremyO...@gmail.com on 20 Sep 2008 at 9:24

GoogleCodeExporter commented 9 years ago
I think it's a bug. But the author would really know.

Original comment by heyb...@gmail.com on 21 Sep 2008 at 7:28

GoogleCodeExporter commented 9 years ago
I have a 2.0 gig Unibody Macbook and I dont get sound except when I plug in
headphones. So I am assuming the problem has continued. I second the request for
playback through laptop speakers and not headphones!

Original comment by furrylo...@gmail.com on 22 Nov 2008 at 8:37

GoogleCodeExporter commented 9 years ago
I have experienced the same problem on an iMac 2.8 GHz Intel Core 2 Duo running 
Mac OS X 10.5.5. Mine also 
works with headphones, but that kind of defeats the purpose. I have experienced 
the same problem with an 
alternative program, Noise UB, except that doesn't work with headphones either.

Original comment by TimArend...@gmail.com on 24 Nov 2008 at 5:09

GoogleCodeExporter commented 9 years ago
I have the same problem. No sound through the macbook internal speakers, but it 
will
work both when I use my Creative X-mod for external sound and when I plug in
headphones. (The X-mod is a USB sound device:
http://us.creative.com/products/product.asp?category=209&subcategory=668&product
=15913).
I seem to recall it working the first time I used it, but once I plugged in the 
X-mod
it stopped working through the internal speakers when the X-mod was not plugged 
in. I
could find no setting or plist file that stores the preferred output device so 
I have
no idea if this is a bug in the program or a bug in OS X.

(Hopefully) relative system info from System Profiler.app:

  Model Name:   MacBook
  Model Identifier: MacBook2,1
  Processor Name:   Intel Core 2 Duo
  Processor Speed:  2 GHz
  Number Of Processors: 1
  Total Number Of Cores:    2
  L2 Cache: 4 MB
  Memory:   4 GB
  Bus Speed:    667 MHz
  Boot ROM Version: MB21.00A5.B07
  SMC Version:  1.13f3
  Serial Number:    XXXXXXXXXXX
  Sudden Motion Sensor:
  State:    Enabled

Intel High Definition Audio:

  Device ID:    0x83847680
  Audio ID: 34
  Available Devices:
  Headphone:
  Connection:   Combo
  Microphone:
  Connection:   Internal
  Speaker:
  Connection:   Internal
  Line In:
  Connection:   Combo
  S/P-DIF Out:
  Connection:   Combo
  S/P-DIF In:
  Connection:   Combo

Creative Xmod:

  Product ID:   0x30d0
  Vendor ID:    0x041e  (Creative Labs)
  Version:  1.00
  Speed:    Up to 12 Mb/sec
  Manufacturer: Creative Technology Ltd
  Location ID:  0x3d100000
  Current Available (mA):   500
  Current Required (mA):    98

Applications:
Noisy:

  Version:  1.2
  Last Modified:    8/25/08 11:21 PM
  Kind: Universal
  Location: /Applications/Noisy.app

Extensions:
AmbrosiaAudioSupport (This is for Wiretap Pro):

  Version:  2.3.9
  Last Modified:    12/7/07 2:27 PM
  Get Info String:  2.3.9, ©2003-2008 by Ambrosia Software, Inc.
  Location: /System/Library/Extensions/AmbrosiaAudioSupport.kext
  kext Version: 2.3.9
  Load Address: 0xc5e000
  Valid:    Yes
  Authentic:    Yes
  Dependencies: Satisfied
  Integrity:    Unknown

AudioIPCDriver:

  Version:  1.0.5
  Last Modified:    10/19/06 1:19 AM
  Get Info String:  Version 1.0.5
  Location: /System/Library/Extensions/AudioIPCDriver.kext
  kext Version: 1.0.5
  Load Address: 0xcbd000
  Valid:    Yes
  Authentic:    Yes
  Dependencies: Satisfied
  Integrity:    Kext has no receipt

Original comment by BrianMic...@gmail.com on 31 Dec 2008 at 10:40

GoogleCodeExporter commented 9 years ago
Hello.

I've found fix. Have no idea why it worked using headphones and didn't work 
using
internal speakers.

===================================================================

ilyas:noisy-read-only ilya$ svn diff ./Source/NoiseGenerator.m 
Index: Source/NoiseGenerator.m
===================================================================
--- Source/NoiseGenerator.m (revision 2)
+++ Source/NoiseGenerator.m (working copy)
@@ -39,9 +39,7 @@
 #import "NoiseGenerator.h"
 #import <CoreAudio/AudioHardware.h>

-#define kSamplesPerBuffer    (8*1024)

-
 @interface NoiseGenerator (Internal)
 - (void)initRandomEnv:(long)numRows;
 - (void)createAudio;
@@ -131,8 +129,8 @@
     if( status ){ NSLog(@"NoiseGenerator::AudioHardwareGetProperty status %d",
status ); return; }

     theSize = sizeof(bufferByteCount);
-    bufferByteCount = kSamplesPerBuffer * sizeof(float);
-    status = AudioDeviceSetProperty( _outputDevID, NULL, 0, NO,
kAudioDevicePropertyBufferSize, theSize, &bufferByteCount );
+    bufferByteCount = 2048; /* Set to something large enough so sound wouldn't 
hiccup */
+    status = AudioDeviceSetProperty( _outputDevID, NULL, 0, NO,
kAudioDevicePropertyBufferFrameSize, theSize, &bufferByteCount );
     if( status ){ NSLog(@"NoiseGenerator::AudioDeviceSetProperty setting buffer size
status %d", status); return; }

     status = AudioDeviceCreateIOProcID( _outputDevID, sWaveIOProc, self,
&_outputProcID );

Original comment by vrgh...@gmail.com on 11 Apr 2009 at 4:12

GoogleCodeExporter commented 9 years ago
I had some trouble applying the given patch, so I followed it's changes and
re-created a patch file.  I've also tried to uploaded a new Zip distribution 
that
works with 10.5.7.

Original comment by todd.n...@gmail.com on 24 Jun 2009 at 9:22

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, uploaded my diff in a hurry and realized I had the sizeof operation out 
of
order.  Here's the new diff and binary

Original comment by todd.n...@gmail.com on 27 Jun 2009 at 11:14

Attachments:

GoogleCodeExporter commented 9 years ago
Wrong zip.  Here's an updated build.

Original comment by todd.n...@gmail.com on 27 Jun 2009 at 11:15

Attachments: