Poster | Thread |
Drule
| |
AHIDB_Bits and HD Audio Posted on 1-Jul-2015 23:52:59
| | [ #1 ] |
|
|
|
Amiga Developer Team |
Joined: 11-Jun-2004 Posts: 49
From: Harrogate, UK | | |
|
| In an attempt to open / allocate AHI for a specific sample format, I've noticed that if I query the HD Audio driver (v6.22) on the X1000 for the bits per sample (AHIDB_Bits) it is never retrieved. It works for other modes so I'm assuming it's not my code -- which is always a surprise.
Is anyone else seeing this? It doesn't appear to really affect anything - the test tone plays etc and I appear to have working audio with one of the HD modes as default so I'm not entirely sure what gives. Any thoughts would be appreciated. _________________ Karma: Positive |
|
Status: Offline |
|
|
lylehaze
| |
Re: AHIDB_Bits and HD Audio Posted on 2-Jul-2015 3:24:23
| | [ #2 ] |
|
|
|
Super Member |
Joined: 1-Sep-2004 Posts: 1142
From: North Florida - Big Bend area. | | |
|
| @Drule
This one is my fault.
The documents for GetAttr say: LONG AHIsub_GetAttr( ULONG, LONG, LONG, struct TagItem *, struct AHIAudioCtrlDrv * );
IMPLEMENTATION Return the attribute based on a tag list and an AHIAudioCtrlDrv structure, which are the same that will be passed to AHIsub_AllocAudio() by 'ahi.device'. If the attribute is unknown to you, return the default.
The HDAudio driver simply returns the default value. This is apparently something I never went back and implemented properly.
_________________ question=(2b||!(2b)) |
|
Status: Offline |
|
|
Massi
| |
Re: AHIDB_Bits and HD Audio Posted on 10-Jul-2015 9:26:32
| | [ #3 ] |
|
|
|
Cult Member |
Joined: 2-Feb-2011 Posts: 627
From: Rome, Italy | | |
|
| @lylehaze
Can this affect other things ( like for example AHI_BestAudioID() ) ?
_________________ SAM440EP-FLEX @ 733 Mhz, AmigaOS 4.1 Update 1 |
|
Status: Offline |
|
|