Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 26th October 2015, 10:28   #81
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
v0.7.1

Quote:
Originally Posted by djnforce9 View Post
Any way the plugin can re-sample the media so that it's compatible [...]?
What's new?
  • Automatic re-sampling in shared mode seems to work now
  • Added an "Exit Winamp" option to the error message dialog box.
EDIT: Please don't miss to look at the forum's previous page regarding the announcement of v0.7.0.
pbelkner is offline   Reply With Quote
Old 26th October 2015, 11:41   #82
chros
Member
 
chros's Avatar
 
Join Date: Nov 2003
Posts: 70
Wow! Thank you for your changes! I'll test it soon
chros is offline   Reply With Quote
Old 28th October 2015, 13:19   #83
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
Thank you so much!

Got around to trying your new version and I now get output through shared mode thanks to your change . Exclusive still requires the sampling rate to match as you said the change was only for shared.

EDIT: It seems exclusive displays the unsupported format error (and the dialog to close Winamp), but if I click cancel, playback starts up just fine. Does it revert to shared mode automatically or does it somehow work despite the error message?

EDIT 2: The dialog only appears when playing certain files (namely ones with different sampling rates) but playback still works fine once I click cancel.
djnforce9 is offline   Reply With Quote
Old 28th October 2015, 13:53   #84
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by djnforce9 View Post
The dialog only appears when playing certain files (namely ones with different sampling rates) but playback still works fine once I click cancel.
Could you please post a hard-copy of the error dialog box?
pbelkner is offline   Reply With Quote
Old 28th October 2015, 16:27   #85
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
That dialog does not display in the debug version (even in exclusive mode) but here is the log produced after playing a file that would otherwise cause the dialog to display:

code:
init
critical section created
waitable timer created
device enumerator created
device collection created
got number of audio devices: 1
device 1:
got item from device collection
id: "{0.0.0.00000000}.{ad85f454-77f5-4f51-bc37-d303078c4d48}"
got interface to property store
PKEY_Device_FriendlyName: "Speakers (3- LH Labs Geek Pulse)"
architecture: 0
options: "C:\Winamp\Plugins\out_yasapid.ini"
share mode: EXCLUSIVE
startegy: push
ring size: 4.0
ring filled: 2.5
shared size: 1.0
init successful
setvolume
volume: 1.00
open
bufferlenms: -1
video: 0
initializing for push mode
audio client activated
AUDCLNT_E_UNSUPPORTED_FORMAT
Error format not supported (channels: 2, rate: 192000, bps: 24, KSDATAFORMAT_SUB
TYPE_PCM): "yasapi_player.c" (170).
format supported: WAVE_FORMAT_EXTENSIBLE, channels: 2, rate: 192000, bps: 24,
KSDATAFORMAT_SUBTYPE_PCM, SPEAKER_FRONT_LEFT, SPEAKER_FRONT_RIGHT
got device period (device period: 30000)
audio client initialized (mode: EXCLUSIVE)
got buffer size (frames: 15360)
got render audio client
sync created
ring buffer created (scale 4.5, size: 368640)
got audio clock
render audio thread created
open successful
start playing
setvolume
Warning: underflow
setvolume
volume: 1.00
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
audio client started
close
audio client stopped
stop playing
render audio thread destroyed
render audio clock
ring buffer destroyed
sync destroyed
render audio client destroyed
audio client destroyed
close successful

djnforce9 is offline   Reply With Quote
Old 28th October 2015, 16:48   #86
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by djnforce9 View Post
here is the log produced after playing a file that would otherwise cause the dialog to display
Many thanks, that's perfect.
pbelkner is offline   Reply With Quote
Old 29th October 2015, 13:05   #87
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
v0.8.0

Quote:
Originally Posted by djnforce9 View Post
It seems exclusive displays the unsupported format error (and the dialog to close Winamp), but if I click cancel, playback starts up just fine.
This release hopefully fixes the issue.

What's new?

Links:
pbelkner is offline   Reply With Quote
Old 29th October 2015, 17:05   #88
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
Thank you so much; working much better than before. I now only see the error when playing files with odd sampling rates. For example, 32Khz files won't play in exclusive mode such as this one:
https://www.dropbox.com/s/tu4bjvqh6z...on%29.mp3?dl=0

I also use an input plugin called "64th Note" which plays the Nintendo 64 music format usf/miniusf. Those also have a sampling rate of 32Khz and won't play in exclusive mode. Even MAIKO's plugin struggles with some of these such as the "Banjo Kazooie" soundtrack.
djnforce9 is offline   Reply With Quote
Old 29th October 2015, 17:31   #89
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by djnforce9 View Post
I now only see the error when playing files with odd sampling rates. For example, 32Khz files won't play in exclusive mode such as this one:
https://www.dropbox.com/s/tu4bjvqh6z...on%29.mp3?dl=0
For now I don't see any means to make this happen. To my understanding exclusive mode is exclusive mode, i.e. the audio is not touched. Even if you uncheck "Auto Convert PCM", a sample rate different from the system setting will not play in shared mode.

Your observation from yesterday gave me the impression that a call to IAudioClient::IsFormatSupported() don't give the result I'm expecting. So I simply dropped it and let IAudioClient::Initialize() decide whether it can deal with a certain format or not.

Quote:
Originally Posted by djnforce9 View Post
I also use an input plugin called "64th Note" which plays the Nintendo 64 music format usf/miniusf. Those also have a sampling rate of 32Khz and won't play in exclusive mode. Even MAIKO's plugin struggles with some of these such as the "Banjo Kazooie" soundtrack.
For those files you should use shared mode.
pbelkner is offline   Reply With Quote
Old 29th October 2015, 18:18   #90
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
Thanks!

Thanks for the tips and for your hard work updating the plugin. Fortunately, most of my files are not affected by this so I can flip to shared mode when needed.
djnforce9 is offline   Reply With Quote
Old 30th October 2015, 07:37   #91
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
v0.8.1

Quote:
Originally Posted by djnforce9 View Post
I can flip to shared mode when needed.
The new release automates this due to an "automatic" share mode.

What's new?
  • New "automatic" share mode which is similar to exclusive except that it falls back to shared in case exclusive fails.

Links:
pbelkner is offline   Reply With Quote
Old 30th October 2015, 09:53   #92
Raj_09
Member
 
Raj_09's Avatar
 
Join Date: Oct 2011
Location: Melbourne Australia
Posts: 81
Quote:
Originally Posted by pbelkner View Post
The new release automates this due to an "automatic" share mode.

What's new?
  • New "automatic" share mode which is similar to exclusive except that it falls back to shared in case exclusive fails.

Links:
Love the new version. It works fine!!

Powering through with the bolt
Raj_09 is offline   Reply With Quote
Old 30th October 2015, 12:14   #93
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
You read my mind.

You implemented the very feature I was considering asking about; thanks. Now I no longer need to worry about manually toggling shared mode. Your plugin is now more stable than MAIKO's (i.e. no more crashes/disruptions). Too bad that project is abandoned but I'm really glad you are working on this plugin.
djnforce9 is offline   Reply With Quote
Old 30th October 2015, 13:08   #94
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by djnforce9 View Post
Your plugin is now more stable than MAIKO's (i.e. no more crashes/disruptions).
For me MAIKO works in shared mode but not in exclusive. In exclusive mode it crashes Winamp when switching from one track to the next. That's the reason why I started to develop YASAPI because I'm interested just in exclusive mode.

With respect to exclusive mode the developer of MAIKO writes:
I do not recommend to use this [exclusive] mode unless you have a specific need.
http://maiko.elementfx.com/
For shared mode he advertises his own 80-bit audio engine
This [shared] mode features a 80-bit software mixer, channel matrixing, resampler and gapless playback on the top of WASAPI shared mode. Maiko take into consideration every nuance on windows kernel data transformations for winamp application and substitute them by her own algorithms as much quality beneficial as possible.
http://maiko.elementfx.com/
Viewed this way, MAIKO and YASAPI are complementary to each other:
  • MAIKO's focus is on shared mode and it's heavy weight in the sense of replacing all necessary audio transformations by it's own 80-bit audio engine.
  • YASAPI's focus is on exclusive mode and it's just a lightweight bridge from Winamp to the Windows WASAPI API.
pbelkner is offline   Reply With Quote
Old 30th October 2015, 15:12   #95
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
Makes sense.

Makes sense to me; you're saying both plugins serve a different purpose rather than one replacing the other. Sticking with your plugin though as Exclusive mode is more for me as I only want one application using the sound card at a time. For example, autoplaying videos on certain websites can no longer disrupt my listening pleasure so to speak .
djnforce9 is offline   Reply With Quote
Old 30th October 2015, 20:58   #96
chros
Member
 
chros's Avatar
 
Join Date: Nov 2003
Posts: 70
Hi Peter!

Thanks for the new versions, the plugin gets better and better! Shared mode is working fine for me as well (previously it wasn't). I could listen to music in shared mode when doing a skype call in the meantime
However I found couple of bugs and I have 2 new feature request as well.

I. Bugs in v7.1-v8.1 (detailed bug report is here: http://pastebin.com/c2TW1E4z ) :
- 1. Exclusive + Pull crashes Winamp (normal and sse version):
- 2. audio clipping/distorsion when playing 48KHz aac 2/6 channel file (normal and sse version)

II. Feature requests (probably the first isn't a big deal):

1. add "System Default" device at the top of the list under Devices tab (as you can see in MPC-HC nightly https://nightly.mpc-hc.org/ )
Reason behind this:
- my setup: laptop -> hdmi -> AVReceiver -> hdmi -> TV
- all the other audio devices are disabled or removed in the Sound preferences in Windows, only this HDMI audio is enabled
- when avreceiver is On/Standby AND tv is Off Windows sees the avreceiver as "RX-A830" audio device (and not just audio device, as it turned out, but as a display as well!!! but it's a different story)
- when avreceiver is On/Standby AND tv is On Windows sees the tv as "LG" audio device! That means yasapi crashes winamp since the set audio device can't be found.
- this is working like this with HDMI audio (devices vanishes and reappears all the time)
- only solution is adding a System Default device at the top of the list: in this way yasapi always use the system default and Windows is selecting the appropriate audio device.

2. add an option for channel matrixing in shared mode (as in Maiko's plugin)
- if it's set then it would use the default speaker setup in Sound preferences in Windows
- e.g. I could select Quadraphonic to mirror the 2 channel fronts to the back (right now I'm using the 7ch sound of my avreceiver , but it uses the center channel as well that I don't like at all)
- this is the only feature that I miss from your plugin (and I can't use Maiko since it's crashes Winamp all the time)


Thank you for your work!
(OS: Windows 8.1 64 bit, HDMI Intel Display Audio driver: 6.16.0.3154)
chros is offline   Reply With Quote
Old 31st October 2015, 09:42   #97
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
v0.8.2

What's new?Links:
pbelkner is offline   Reply With Quote
Old 31st October 2015, 09:53   #98
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by chros View Post
I. Bugs in v7.1-v8.1 (detailed bug report is here: http://pastebin.com/c2TW1E4z ) :
- 1. Exclusive + Pull crashes Winamp (normal and sse version):
- 2. audio clipping/distorsion when playing 48KHz aac 2/6 channel file (normal and sse version)
The new v0.8.2 may fix both errors, or may not. Unfortunately I can't test it because my system doesn't allow pull in exclusive mode nor does it allow for 2/6.
Quote:
Originally Posted by chros View Post
1. add "System Default" device at the top of the list under Devices tab
I'm thinking about it.
Quote:
Originally Posted by chros View Post
2. add an option for channel matrixing in shared mode
Unfortunately I don't see something similar easy to implement as the AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM flag as proposed by benski.

EDIT: I've just uploaded a slightly changed v0.8.2.

Last edited by pbelkner; 31st October 2015 at 11:23.
pbelkner is offline   Reply With Quote
Old 1st November 2015, 11:46   #99
chros
Member
 
chros's Avatar
 
Join Date: Nov 2003
Posts: 70
Thanks for the new build Peter!
Quote:
Originally Posted by pbelkner View Post
The new v0.8.2 may fix both errors, or may not. Unfortunately I can't test it because my system doesn't allow pull in exclusive mode nor does it allow for 2/6.
Unfortunately it didn't (here's the new log: http://pastebin.com/qyN8ueHt ):
1. there's a different behaviour now (from 0.8.1), it won't crash winamp immedately, but:
- won't start playback then it waits
- when stop button is pushed: then crashes
2. still clipping, here a 2ch-48KHz-sample-aac : https://dailyuploads.net/qhk9u5ne3fq0

Quote:
Originally Posted by pbelkner View Post
I'm thinking about it.
It won't hurt anything

Quote:
Originally Posted by pbelkner View Post
Unfortunately I don't see something similar easy to implement as the AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM flag as proposed by benski.

EDIT: I've just uploaded a slightly changed v0.8.2.
Ok, no problem. Maybe later then ...
What's this "Added support for KSAUDIO_SPEAKER_7POINT1" feature for? Does it only allow 7.1 playback in shared mode? It isn't for channel matrixing, right?
chros is offline   Reply With Quote
Old 1st November 2015, 17:33   #100
chros
Member
 
chros's Avatar
 
Join Date: Nov 2003
Posts: 70
And here's the Sanear Directshow Wasapi Audio Renderer on github (what's included in MPC-HC nightlies), maybe it can give you couple of hints: https://github.com/alexmarsev/sanear
chros is offline   Reply With Quote
Old 5th November 2015, 12:58   #101
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
Been using the new version for a little while now and absolutely no problems from my end; thanks again for the hard work. My setup is stereo only though so it's different than chros's.
djnforce9 is offline   Reply With Quote
Old 8th November 2015, 11:30   #102
Zeekid
Junior Member
 
Join Date: Dec 2014
Posts: 27
pbelkner

Just installed your plugin, no problems at all. The playback from many of my old mp3's is now "music to my ears". Thank you! Zeekid
Zeekid is offline   Reply With Quote
Old 8th November 2015, 15:30   #103
returnofthem
Junior Member
 
Join Date: Nov 2015
Posts: 1
Hi guys,

I'm trying out this plugin and can't get it to work in exclusive mode at the moment. I'm on Windows 7 and if I set it to exclusive then no audio plays. I've installed the debug version of the plugin and have pasted the log below - any ideas? Is it just an incompatibility with my sound card maybe?

The "Warning: underflow" just repeats over and over until I pause or stop the playback. I've fiddled around with buffer settings a bit to see if that made any difference, but it hasn't.

I'm playing back via the "Speakers (ASUS Xonar DX Audio Device)" device.

code:
init
critical section created
waitable timer created
device enumerator created
device collection created
got number of audio devices: 3
device 1:
got item from device collection
id: "{0.0.0.00000000}.{439698c0-d913-4048-9df0-c7fa7d3d9018}"
got interface to property store
PKEY_Device_FriendlyName: "S/PDIF Pass-through Device (ASUS Xonar DX Audio Device)"
device 2:
got item from device collection
id: "{0.0.0.00000000}.{9d072249-200d-4721-9f44-c37a21f04bd3}"
got interface to property store
PKEY_Device_FriendlyName: "Speakers (ASUS Xonar DX Audio Device)"
device 3:
got item from device collection
id: "{0.0.0.00000000}.{f75950a2-3db1-461a-8173-c96056e800dd}"
got interface to property store
PKEY_Device_FriendlyName: "Realtek Digital Output (Realtek High Definition Audio)"
architecture: 0
options: "C:\Users\<profile>\AppData\Roaming\Winamp\Plugins\out_yasapid.ini"
mode: EXCLUSIVE
startegy: push
ring size: 8.0
ring filled: 8.0
shared size: 8.0
init successful
setvolume
volume: 1.00
open
bufferlenms: -1
video: 0
initializing for push mode
audio client activated
got device period (device period: 30000)
device period scaled by 8.00 (device period: 240000)
setting device period to 240000
audio client initialized (mode: EXCLUSIVE, channels: 2, rate: 44100, bps: 24)
got buffer size (frames: 3528)
got render audio client
sync created
ring buffer created (scale 8.5, size: 169344)
got audio clock
render audio thread created
open successful
setvolume
start playing
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
Warning: underflow
[...]
Warning: underflow
Warning: underflow
pause
Warning: underflow
close
stop playing
player shut down
render audio thread destroyed
render audio clock destroyed
ring buffer destroyed
sync destroyed
render audio client destroyed
audio client destroyed
close successful

returnofthem is offline   Reply With Quote
Old 8th November 2015, 17:48   #104
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by chros View Post
Unfortunately it didn't (here's the new log: http://pastebin.com/qyN8ueHt ):
1. there's a different behaviour now (from 0.8.1), it won't crash winamp immedately, but:
- won't start playback then it waits
- when stop button is pushed: then crashes
2. still clipping, here a 2ch-48KHz-sample-aac : https://dailyuploads.net/qhk9u5ne3fq0
Quote:
Originally Posted by returnofthem View Post
I'm trying out this plugin and can't get it to work in exclusive mode at the moment.
In the next few days there will be a new version which re-assembles the fundamental building pieces in a different way. This fundamental change hopefully addresses most of the current issues.
pbelkner is offline   Reply With Quote
Old 8th November 2015, 17:49   #105
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by chros View Post
Unfortunately it didn't (here's the new log: http://pastebin.com/qyN8ueHt ):
1. there's a different behaviour now (from 0.8.1), it won't crash winamp immedately, but:
- won't start playback then it waits
- when stop button is pushed: then crashes
2. still clipping, here a 2ch-48KHz-sample-aac : https://dailyuploads.net/qhk9u5ne3fq0
Quote:
Originally Posted by returnofthem View Post
I'm trying out this plugin and can't get it to work in exclusive mode at the moment.
In the next few days there will be a new version which re-assembles the plugin's basic building blocks in a different way. This hopefully will address most of the current issues.
pbelkner is offline   Reply With Quote
Old 10th November 2015, 13:44   #106
chros
Member
 
chros's Avatar
 
Join Date: Nov 2003
Posts: 70
Quote:
Originally Posted by pbelkner View Post
In the next few days there will be a new version which re-assembles the plugin's basic building blocks in a different way. This hopefully will address most of the current issues.
Thanks, Peter, I'm curiously waiting for the new version And thanks for your hard work!
chros is offline   Reply With Quote
Old 12th November 2015, 21:44   #107
ravermeister
Senior Member
 
ravermeister's Avatar
 
Join Date: Feb 2009
Location: Cologne
Posts: 194
Send a message via ICQ to ravermeister
me too, but to be honest I'm still jumping between maiko and yasapi, because
the upmixing from Stereo sources to 5.1 is great in maiko
ravermeister is offline   Reply With Quote
Old 13th November 2015, 10:49   #108
chros
Member
 
chros's Avatar
 
Join Date: Nov 2003
Posts: 70
Quote:
Originally Posted by ravermeister View Post
me too, but to be honest I'm still jumping between maiko and yasapi, because
the upmixing from Stereo sources to 5.1 is great in maiko
Yes, but wait for Peter, maybe with the code refactoring it will be easier for him to implement this feature as well
chros is offline   Reply With Quote
Old 13th November 2015, 13:22   #109
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
Quote:
Originally Posted by pbelkner View Post
In the next few days there will be a new version which re-assembles the plugin's basic building blocks in a different way. This hopefully will address most of the current issues.
Looking forward to it. Thank you so much for the hard work and for addressing the issues I was having with the plugin earlier.
djnforce9 is offline   Reply With Quote
Old 22nd November 2015, 12:16   #110
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
v0.9.0

What's new?
  • Complete re-write based on a new architecture. The basic idea is to serialize all requests and dispatch them into just one worker thread. In particular the serialization takes into account asynchronous requests resulting from the WASAPI device.
  • Round up ("ceil") the size of the ring buffer to the next multiple of Winamp's packet size (576 samples).
  • Special treatment of double buffering, i.e. pull in exclusive mode.
  • Additional options to configure the debug version.

Note: You should re-configure at least the buffer sizes. As a rule of thumb all buffer sizes should be 1.0 except the ring buffer's size which should be just a small amount greater then 1.0.

Links:
Quote:
Originally Posted by returnofthem View Post
I'm trying out this plugin and can't get it to work in exclusive mode at the moment. [...] The "Warning: underflow" just repeats over and over until I pause or stop the playback.
Possibly this is addressed by the secound bullet point of the above announcement ("ceiling" of the ring buffer's size to a multiple of 576 samples). Please reset the configuration of the buffer sizes as explained in the note above.
Quote:
Originally Posted by chros View Post
there's a different behaviour now (from 0.8.1), it won't crash winamp immedately, but:
- won't start playback then it waits
- when stop button is pushed: then crashes
Hope that there's some further improvement due to the third bullet point of the above announcement (special treatment of double buffering).
pbelkner is offline   Reply With Quote
Old 22nd November 2015, 19:06   #111
Cool Barn
Junior Member
 
Join Date: Jul 2010
Posts: 14
Thanks for the update

However I am finding the reduced buffer sizes of 0.9.0 are playing havoc with my system. In yasapi version 0.8.2 I had to drag all three buffer sliders to the far right to be able to use Winamp properly. At default levels the songs would play and sound great, but if I tried to drag the seeker forward or backward quickly during a song I could quite often get a AUDCLNT_E_BUFFER_TOO_LARGE: “yasapi_session.c” (943) error message. Increasing all three buffer sliders seemed to help in this regard.

However with the new version 0.9.0 even with all three buffer sliders to the far right I can't play any music; I now get a AUDCLNT_E_BUFFER_TOO_LARGE: “yasapi_session.c” (642) error message instead.

Hope you can help. I am using a Gieseler Klein DAC via USB. According to the Gieseler website the USB input is via an Amanero Combo 384 module in asynchronous mode. I am using the latest Amanero drivers 1.0.57.

I have reverted back to 0.8.2 and everything is working again. Hope you can help; I would love to be able to keep my Yasapi up to date if possible.

Thanks again for a great plugin
Cool Barn is offline   Reply With Quote
Old 22nd November 2015, 23:23   #112
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by Cool Barn View Post
I now get a AUDCLNT_E_BUFFER_TOO_LARGE: “yasapi_session.c” (642) error message instead.
Are you in shared or exclusive mode? Push or pull?
pbelkner is offline   Reply With Quote
Old 23rd November 2015, 00:05   #113
Cool Barn
Junior Member
 
Join Date: Jul 2010
Posts: 14
Quote:
Originally Posted by pbelkner View Post
Are you in shared or exclusive mode? Push or pull?
Exclusive and push (I also pressed the "Default" button in the bottom left corner).

If I ever ran the plugin in 'shared' mode (my preferred option) it would pop and click way too much, but exclusive mode was perfect.

Have never tried the 'pull' option - should I give it a go?

Thanks
Cool Barn is offline   Reply With Quote
Old 23rd November 2015, 13:35   #114
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
v0.9.1

What's new?
  • Added an option for configuring whether calculation of the buffer sizes should be based
    on the default or on the minimum device period as proposed by WASAPI. Made default device period the default. So long the calculation was silently based on the minimum device period.


  • Added tooltips to the configuration dialog's controls.
Links:
Quote:
Originally Posted by Cool Barn View Post
I now get a AUDCLNT_E_BUFFER_TOO_LARGE: “yasapi_session.c” (642) error message instead.
This error results from a call to the IAudioRenderClient::GetBuffer method. Microsoft explains regarding this error:
The NumFramesRequested value exceeds the available buffer space (buffer size minus padding size).
I can hardly see how this can happen. In order to gain some information I've introduced some additional tracing into the new debug version. It would be nice if you can run the debug version with "Debug" set to "Default". I need to know at least what is written under "open", e.g.

PHP Code:
open
  wasapi clock
  REQUEST_OPEN
  samplerate
44100
  numchannels
2
  bitspersamp
24
  audio client created
  got device period
    
default: 100000 hns
    minimum
30000 hns
    choosen
30000 hns
  audio client initialized
  audio clock created
  got buffer size
2048 frames
  audio render client created
  ring buffer size
2880 frames (1.41)
  
ring buffer created
  audio client started 
and, of course, what is written when the error appears.
pbelkner is offline   Reply With Quote
Old 23rd November 2015, 16:06   #115
djnforce9
Junior Member
 
Join Date: Feb 2014
Posts: 40
Thanks for the update. For some reason, this file won't play for me (even in shared mode). It just hangs at 00:00:
https://www.dropbox.com/s/ea7050dfyu...oline.mp3?dl=0
djnforce9 is offline   Reply With Quote
Old 23rd November 2015, 16:11   #116
Cool Barn
Junior Member
 
Join Date: Jul 2010
Posts: 14
Thanks for your assistance, PM sent
Cool Barn is offline   Reply With Quote
Old 23rd November 2015, 16:26   #117
Cool Barn
Junior Member
 
Join Date: Jul 2010
Posts: 14
Update - The latest version works if I select 'Pull' as the strategy, however like last time there are a lot of pops and clicks at the default buffer sizes. These pops and clicks disappear if I slide the buffer arrows to their maximum.

Also note that both 'Shared' and 'Automatic' also result in jumpy pops and clicks, but the songs play perfectly in Exclusive Mode.

Another issue - my song doesn't stop when it is supposed to. At the end of the song there is silence and the seeker stops moving as it should. However the song time keeps advancing and the little display of dotted lines underneath the time goes back and forth while the clock keeps ticking. If I don't press the stop button the song time just keeps going up and up.
Cool Barn is offline   Reply With Quote
Old 23rd November 2015, 16:49   #118
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by djnforce9 View Post
this file won't play for me (even in shared mode). It just hangs at 00:00:
https://www.dropbox.com/s/ea7050dfyu...oline.mp3?dl=0
For me it plays perfectly:

PHP Code:
open
  wasapi clock
  REQUEST_OPEN
  samplerate
44100
  numchannels
2
  bitspersamp
24
  audio client created
  got device period
    
default: 100000 hns
    minimum
30000 hns
    choosen
30000 hns
  audio client initialized
  audio clock created
  got buffer size
2048 frames
  audio render client created
  ring buffer size
2880 frames (1.41)
  
ring buffer created
  audio client started 
At your site, is the audio client starting? Could you please provide a trace?
pbelkner is offline   Reply With Quote
Old 23rd November 2015, 16:52   #119
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by Cool Barn View Post
Thanks for your assistance, PM sent
I've just replied.
pbelkner is offline   Reply With Quote
Old 23rd November 2015, 16:59   #120
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by Cool Barn View Post
Another issue - my song doesn't stop when it is supposed to. At the end of the song there is silence and the seeker stops moving as it should. However the song time keeps advancing and the little display of dotted lines underneath the time goes back and forth while the clock keeps ticking. If I don't press the stop button the song time just keeps going up and up.
Could you please provide a trace for that? Could you please copy&paste the trace into PHP tags (right most of the forum's editor tool bar).
pbelkner is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump