Macbook M1 Monterey – USB Audio dropouts Core Audio - macos

I am trying to solve my USB audio problems on 2022 M1 MacBook Pro 14" with 16GB RAM/latest Monterey connected to an external DAC via USB which results in irregular audio dropouts. Audio gets muted for about 1 sec after some time using the MacBook and gets more often after some usage, sometimes multiple times in a minute. Internal audio seems to work fine. It is independent on the DAC i use (already tried another one).
Every time audio is muted I get the following error message (with a new timestamp) from CAReportingService (Core Audio) in Console.app:
10:11:30.424212+0200 CAReportingService flushMessagesWithCompletion: flush failed with error '<private>'
I already tried this:
repaired UserPermissions
deleted Audio Plugins
Does anyone have an idea to solve this issue? Is it a hardware or software issue? Thanks

Related

Stalling WMP with 4 or more streams

I developed an application in C that can display 4 videos, and 1 sound file in the background.
The video uses the WMP object in the C++ class provided by Microsoft in the WMP SDK. The audio uses Windows' MCI (Media Control Interface) which is sent command strings.
To be able to play lots of different formats, I installed windows.7.codec.pack.
I experience a problem that when playing more than 3 media files (video or audio), the media stall. A video to be started constantly cycles from state 3 (Playing) to state 9 (Preparing new media) to state 10 (Ready to begin playing - without anything happening), and so on and so on. This is seen as a flicker of the video (state 3) followed by a few seconds of nothing (black, or desktop background, state 9). Once a video has started, it plays fine until the end.
Decreasing the number of media files to play to 2 videos and 1 audio lets it play fine; increasing to 3 video or more and 1 audio and this happens. Task Manager shows a CPU load of less than 25%, so CPU cannot be the problem.
It seems that MCI and WMP share stuff in the background because not only do videos stall, also audio stops without reporting errors (querying MCI returns that it is playing, but there is no sound).
I upgraded to windows.7.codec.pack.v4.2.6. This had a terrible performance
I reverted to windows.7.codec.pack.v4.1.6. This has a much better performance but still not perfect.
My question(s):
Is there any way I can configure Windows or the codec package to seamlessly handle 5 streams?
How can I report this problem to the developer?
Are there other codec packages that do not have this problem?
Any other suggestion?
System info: Intel i7-3520M X64 dual core at 2.9Ghz with 8GB physical memory and NVIDIA Quatro K1000M display adapter.
I think I found the solution.
After playing a video, I called the Player's Close() method. The documentation says:
The close method releases Windows Media Player resources.
Remarks
This method closes the current digital media file, not the Player itself.
Indeed I wanted to release the media file so it would no longer be busy in the file system. However, it seems that more resources were released than just the media file. As a consequence, for a next media file to be played, the player had to allocate resources again. It seems that turned out to be a bottle neck.
No longer calling Close() but just giving it the URL (filename) of the next media file to play now solved the problem. (I still have to give some retries sometimes but the general performance is now very well acceptable.)
The media file is released when the next media file starts playing.

ffmpeg av_interleaved_write_frame(): Device not configured

I have repeatedly tried to convert several videos I have lying around, but they all fail due to the error msg av_interleaved_write_frame(): Device not configured. Since I am writing to a wd my cloud disk I presume it is due to my mac loosing its connection after the keyboard is idle for 15 min.
Any idea how I can circumvent this?
Mac OS X High sierra.

OSX Yosemite + Crossover (Wine) = Sporadic MIDI Sync

The setup:
OSX Yosemite.
Ableton Live 9 (Suite).
Crossover/Wine (14.0.3).
Connected device is a Novation Launchpad Mini (USB).
The problem:
The install of Ableton and most of its use work well. I have compiled and successfully installed wineasio.dll (wineasio.dll.so) to obtain low latency audio, again this works extremely well.
But what I am finding is the communication between the LP and Live is somewhat sporadic. examples of this are, having to list the LP in the midi in/out section of live multiple times just to get it to behave correctly (mostly), pads/lights randomly lighting/becoming non responsive, active tracks not showing (lighting up)
There is no pattern in all this. bug what i can say this setup works without problems in windows and OSX (obviously)
before you ask I'm having to use WINE as one of my favourite VST's is only windows based.
if someone can recommend a VM based solution (with low latency audio/ Midi) i will welcome it.

OSX -- Output WAV independently to 12 speakers connected via USB soundcards

I wish to simultaneously play sounds through up to 12 mono speakers.
I could connect these to my MacBook using 6 USB soundcards, and use the left and right channel of each.
But how can I get the MacBook to play sound out of speaker #5, for example?
PS If anyone can see a smarter way to wire up 12 speakers to a MacBook, please do say!
You can setup an Aggregate Device (Audio Midi Setup > Create Aggregate Device), which allows the ability to combine multiple devices of the same model, or to combine multiple inputs and outputs for apps that don't support separate input and output devices. This Apple guide shows how it works and is surprisingly quite easy to setup.
Another way to route audio to multiple channels and outputs (up to 64) is with the free app/plug-in Soundflower. You can download a compiled version, or compile the source code if you want/need to specifically do something that the current compiled version might not.

Run multiple webcams at a time using DirectShow

I'm using Windows 7 OS. working with Visual Studio 2010. Here I'm usng DirectShow2005-Lib.dll.
Here I'm able to run two webcams at a time. But when I'm going to connect and run the 3rd webcam .. I'm not able to run all the three at a time. I can run only two at a time.
and getting an error : No combination of intermediate filters could be found to make the connection.
How can I run multiple webcams at a time using DirectShow?
USB bandwidith is a limited resource and you cannot run too many cameras. Sometimes, in some modes, you can run only one camera at a time.
See:
Two webcams on one usb hub - bandwidth issues
2 usb cameras not working with opencv
Implications of using many USB web cameras
The problem is solved. I have used PCI Card USB Slot. Two cameras connected to the PCI USB slot and one to normal USB slot. Thus all the three cameras are running simultaneously at the same time.
We can also use USB Hub for this.
Some (most?) drivers I've encountered don't allow multiple instances to be loaded. As you already have 2 loaded, this is unlikely to be the case, but this is for future reference.
I’ve noticed 2 instances when I receive the same error:
1)I’m trying to connect to a web cam that is already running a graph. (most webcam drivers can only have one instance open, like Deana mentioned)
2)You’re connecting to the wrong pins or you need to set up a smart T filter for that particular camera.
Are you using the same cameras (if so be cautious of not running the same one twice)?
USB bandwidth won’t be an issue if your pumping out low resolution, but if your frames are over 3MP you could run into issues only if you’re running off the same USB port…
Step through the graph, where exactly is it failing?

Resources