Problem with Set/Get volume of input device with single channel

from Symadept <[email protected]>
to Cocoa Developers <[email protected]>,
coreaudio-api <[email protected]>
date Thu, Dec 10, 2009 at 2:45 PM
subject Problem with Set/Get volume of input device with single channel
mailed-by gmail.com
hide details 2:45 PM (2 hours ago)
Hi,
I am trying to Set/Get Volume level of Input device which has only single channel but no master channel, then it fails to retrieve the kAudioDevicePropertyPreferredChannelsForStereo and intermittently kAudioDevicePropertyVolumeScalar for each channel. But this works well for Output device.
So is there any difference in setting/getting the volume of input channels?
I am pasting the downloadable link to sample.
http://www.4shared.com/file/169494513/f53ed27/VolumeManagerTest.html
Thanks in advance.
Regards
Mustafa
Tags: MacOSX, CoreAudio, Objective C.

That works but the the game will not be in full screen, it will have an empty strip at the bottom.
I actually found out what's the problem. I traced the stageWidth and stageHeight during resizing event. I found out that when it first resized, the stage width and height were the size with the notification bar. So when I pass the stage into startling, myStarling = new Starling(Game,stage), the stage is in the wrong size. For some reason, I can only get the correct stage width and height after the third resizing event.
So now I need to restart Starling everytime a resizing event happened. It gives me the right result but I am not sure it is a good idea to do that.
And thanks a lot for your time kglad~I really appriciate your help.

Similar Messages

  • Problem with SET GET parameters

    Hi all,
    I am facing a problem using SET and GET parameters.
    There is a Z transaction(Dialog program) where some fields of screen are having parameter ID's. That transaction is designed to diaplay/change status of only one inspection lot at a time.
    Now I need to call that transaction in a loop using BDC. I mean i need to update the status of multiple inspection lots(one after the other). Before calling the transaction I am using
    SET PARAMETER ID 'QLS' FIELD lv_prueflos.
    Unfortunately the transaction is only changing the first inspection lot. When I debugged I found that the screen field is changing in PAI. Even though in PBO it shows the next value, when it goes to PAI it is automatically changing to the first value(inspection lot).
    Example: Inspection Lots : 4100000234
                                               4100000235
                                              4100000236
    Now first time when the call transaction is being made the status of insp lot 4100000234 is changed. For the second time when insp lot 4100000235 is being passed in PBO ican see this. But the moment it enters PAI the screen field changes to 4100000234.
    Could you pls help me in solving this issue.
    Thanks,
    Aravind

    Hi,
    Problem with SET GET parameters
    Regarding on your query. Follow this below link.
    It will help you.
    Re: Problem with Set parameter ID
    Re: Problem in Set parameter ID
    I Hope it will helps to you.
    Regards,
    Sekhar

  • Using more than one USB input device with Logic

    I have 2 USB mic's that I would like to record to separate tracks in Logic Express. The research I've done seems to indicate that this is not possible because an audio interface is required for more than one input device of any kind. Is there any way around buying a $150 audio interface? If so, I'll complicate things further, the mics are SAMSON CU10's and logic does not recognize them unless you set them up with the Aggregate device editor. Another configuration I would like to use in a Line6 USB guitar interface on one track and a Samson USB mic on another. Any options or do I need to buy an audio interface?

    The line 6 is an interface. Try setting up the mic & the Line 6 as an aggregate device-I'm not sure if you can couple two ag's together or not. Barring that, Lexicon's Alpha has dropped to $80.oo, I'm getting set to but one today.
    -d

  • How do I set up multiple midi-input devices:WX5 wind & keyboard controllers

    Hello,
    I'm trying to setup my system to utilize two midi input devices.
    1. Novation Controller Keyboard connected through USB
    2. WX5 wind controller connected via VL-70 tone module with midi out cable to channel 1 of my Motu midi interface.
    As it is currently setup I am able to play both my Wind Controller and MIDI Keyboards fine, but for some reason whenever I finish playing the Wind Controller, the MIDI Keyboard no longer plays sound (it plays midi fine according to the transport, but no sound is created until I load another patch of the EXS).
    What am I doing wrong? Should I be switching between inputs in Logic somehow? How can I setup my system to be able to jump back and forth between my midi keyboard and wind controllers? I have done no setup besides cabling the devices in the AudioMidi setup (outside of Logic).
    Thank you in advance for any help you can provide!

    This is just a guess, but if the last thing your wind controller puts out is a volume message of zero (as I think it would do as you stop playing the last note) then you would need to send a volume message to the sound module to reset it to the desired volume.

  • HELP Audio problem when setting windows volume at max and media player at max

    im using msi eclipse x58
    whenever i set my windows volume at max and media player at max also, after few seconds it suddenly not hearing audio but my media player is still playing
    on other applications like skype wenever i set windows volume at max and after few seconds of voice chat with my friend the error says audio device disconnected.
    On  game applications while playing game same thing happens audio is gone
    it is really stressful can someone pls help me out thanks

    Quote from: NovJoe on 17-February-10, 17:01:40
    Please list out your full system specs and PSU specs amps for verification first.
    My Power Supply is Cooler Master Real Power 550W
    i7 core 920
    Nvidia GTS 250
    hard drive
    320gb
    640gb
    2x 2gb 1333 ddr3 ram

  • How to get Revel on other devices with app to update when I have auto update and it does not work

    How do I get Revel with auto update to update on my other devices with the Revel app when the update does not work?

    In elements organizer, are you adding the photos to the mobile album?
    Could you try the troubleshooting steps shared at: http://helpx.adobe.com/elements-organizer/kb/troubleshoot-revel-relate d-issues.html

  • How to set the gain and input coupling for each channel on a NI 4462 DaQ card?

    I've seen a few examples in how to set the gain for NI 4462, but none tell me how to chose the channel I wish to set this gain.  Also the same problem with input coupling
    Does anyone know how to set the gain and input coupling for each individual channel?
    Thanks,
    Hector
    LabView 8.5 Windows XP

    Hey Hector,
    http://forums.ni.com/ni/board/message?board.id=100&thread.id=1688
    This has a few examples of how to do that.  Let me know if you have further questions.
    Have fun!
    -gaving

  • Problem with SET/GET Parameter id

    Hi Folks,
    I have two programs.
    First is ztest_j which is as follows :
    DATA : mem TYPE char10 VALUE 'id1'.
    set parameter id 'PARA_XXX' field mem.
    Second  is ztest_j1 which is as follows :
    DATA : mem TYPE char10 .
    get PARAMETER ID 'PARA_XXX' FIELD mem.
    WRITE : / 'mem from get ', mem.
    When i execute both in sequence, I m not getting value of Parameter id in seconds program.
    What is wrong ? kindly suggest.
    Thanks in Advance.
    Regards,
    jitu188

    HI
    No Need to maintiain paramter ID in TPARA Table.
    I have created two program with same  Para ID = PARA_XXX its working fine .
    Please check following code =
    Program 1) => 
    DATA : mem TYPE char10 VALUE 'San'.
    set parameter id 'PARA_XXX' field mem.
    Press on Excute Button.
    Program 2) =>
    DATA : mem TYPE char10 .
    get PARAMETER ID 'PARA_XXX' FIELD mem.
    WRITE : / 'mem from get= ', mem.
    Press On Excute Button
    O/p => San
    Please check system settings with BASIS Team.

  • Problem with set/get attribs in HttpSessions

    I'm collecting data attributes from an LDAP server and storing them in the individual session. The string containing the attribute name is comprised of 3 elements concatenated together: the servet name, the literal "selectID" and a 4 digit sequence number converted to a string using the valueOf method. The session will contain 10 or more of these uniquely name session attributes. But, when I later attempt to retrieve them, every call to getAttribute retrieves the same data element, the last one stored. I have verified that I am using unique attribute names, yet mu servlet behaves as if its always over-writing the same attribute. Are there any sutble "gotchas" I need to allow for???

    Any chance you're populating the same object every
    time from LDAP? If all the references added to the
    session were the same, then the value would be the
    last one added.
    If this is not helpful, can you post the relevant
    code?Nope. But I did finally discover my error, staring at me right in the face and me with a sheepish grin -- a dumb newbie error, and at my age :-) The object in question is a 7 element String array and I was declaring it outside the for loop reading the enumerations. So I was simply storing the exact same object on each iteration and so naturally, each getAttribute retrieved the exact same object under a different name. Moved the new String[7] declaration to within the scope of the loop, and works jusr like it should. I think I'll go and hide now.

  • Problem with set/get attributes

    Hello,
    i'm trying to assign and object i've got to the ServletContext by :
    getServletContext().setAttribute("theairwaybill",theairwaybill);
    and i''ve checked and it's there.
    now, trying to get the object back in my jsp page by:
    theairwaybill = (Shipments.Awb)getServletContext().getAttribute("theairwaybill");
    and i know i've got the object by comparing both my local object's address and the one from the ServletContext() but the values of the variables are null and zeros from unknown reason...?
    what can be reason?
    10x ahead,
    netanel

    try to get the context object from config object then try
    sorry i dont have time to help out out... busy schedule bye

  • Problem with 'Word edit cell.vi' , Inputs transduced with the value of every row repeated

    Hello,
    Im using LV2013 with office 2013 report tool kit. I am trying to use Word edit cell to input values in table previously created in template .doc.
    Indeed, i trying the example Generate report from template and didnt works well. I search for solution and I see it was a problem with previous version but it seems not solve totally in this version for word office 2010. 
    http://digital.ni.com/public.nsf/allkb/4041ECB5D02BA57D862579A00002FE8D
    I checked this thread but i didnt get it to works. http://forums.ni.com/t5/LabVIEW/Problem-with-append-table-and-Word-2010/m-p/2190960#M702610
    Any way to solve it?.
    Thanks for help.
    Fred
    Attachments:
    error.png ‏32 KB
    Untitled 1.vi ‏19 KB
    exampleTemplate.doc ‏37 KB

    Hello, I solve it adding this to Word_insert_Table.
    http://forums.ni.com/t5/LabVIEW/Report-Generation-MS-Word-Table-Bug/td-p/1605170
    Thanks.
    Open [LabVIEW installation folder]\vi.lib\addons\_office\_wordsub.llb\Word_Insert_Table.vi
    There is a nested for loop that interprets the provided string array data and reformats it into a long ASCII string for the copy buffer. It should look like this:
    Change the nested loop to look like this:
    The changes I've made are twofold:
    1. Within the inner loop, replace the "\n" char with a Tab character
    2. Just after the inner loop, add a new "concatenate strings" function that adds "\n".

  • Problem with set-up of a macmini server with airport

    Dear readers
    Last week I took the bolt step to buy a macmini with OS 10.6 server to set-up a server at home for al kinds of reasons including the claim that it should be easy. Well I am still struggling but making progress in discovering how things work. To be honest this is part of the fun and one of the other reasons to buy the systems. There is one problem I hope somebody can help me with. In the getting started guide a set-up with an airport between the server and the router of the internet provider is promoted. The router is the DNS server, the airport the DHCP server for the local network. This is what I like to do as the macmini has only one Ethernet port and other configurations are not possible without making changes in the hardware configuration. The network service documentation seems to me not supporting this set-up. It considers the server to be used as DHCP server and DNS server where the airport is only used as wifi hub. Also I had problems with the initial set-up that gives the option to include the airport in the configuration and should set-up everything automatically. Halfway during the automatic set-up process at the end of the configuration the airport was reset causing the set-up process to fall over. I used the remote set-up process as only this process asks for the airport connection.
    I have not figured out how to set-up the DNS to get access to the server from outside . My provider is revering to a site dyndns.com but I have not checked this.
    Does anybody have experience with the configuration I am working on. Did I miss something in the set-up or the documentation, especially related to the DNS setup including using dyndns.com and the DHCP set-up.
    Thanks for your advice.

    The first problem is DNS.
    Your router is not a DNS server. When you ask your router to resolve names it is going out to the DNS servers specified by you (or your ISP). So, unless it can find your domain out there on the internet, a client will not be able to resolve your server's name. You have to have a DNS server you can talk to that has a record of your server.
    So you need to:
    1. Setup DNS on the server
    2. Setup DNS on another machine/server
    Here is what I would recommend:
    1. Setup DNS on your Mini
    2. Add the IP of your Mini as the DNS server for your clients.
    3. Keep your Airport as the DHCP server
    Page 19 is assuming you have asked your ISP to add a DNS record for your domain. If you have not done that, nothing will be able to find your server.
    As far as dyndns, you could use them as a DNS server for external access. You setup an account, add your external IP for the address you setup with them and that is pretty much it. You can run the updater on your server which will track your IP and update it in the event you have a dynamic IP and it changes.

  • How do i get apps on multiple devices with the same AppleID

    I havev 34 iPads in my classroom. I need to add apps as I find them. Is there a way to put the apps on all of the iPads using one action instead of having to install the app on each iPad? It takes way too long to put individual apps on individual iPads after they have been inititally setup.

    Buy a copy of OS X Server and use Profile Manager to set up the devices.  You can use it to specify which apps they have on them.  After you've made a change, the next time device connects to the internet it will automatically catch up with the new settings.
    http://support.apple.com/kb/HT5366
    http://www.apple.com/uk/osx/server/features/#profile-manager

  • Help with setting/getting variables in app

    Hi,
    I have an application which behaves in the following manner:
    1. User logs in.
    2. User is presented with a list of projects; user clicks on a project to drill down to that project.
    3. User is presented with project information which includes 4 separate lists of tasks grouped by week. So there are tasks for the current week the user is in plus task for the 3 weeks out.
    4. User can edit talks or create new ones for each of the 4 weekly groupings.
    Given that, on the main page for a project I have set up a report and form for each of the weekly groupings. I also have an item for the project id as well as each weekly grouping id. The goal there is that when a user clicks the "create" button they can create a new task for the appropriate weekly group. However, this isn't working.
    For the first weekly group when I click "create" I'm presented with the form to fill out for the task. All of the info is there, including the correct id for that weekly group so the task gets assigned to it properly. However, when I save I get an error which says that particular id is null.
    For the next three groups when I click "create" I'm given the same thing as above but without the id for the weekly group. Even if I set it and save things I'm getting the same error.
    So, I'm wondering what I've done wrong in the app flow. Am I setting these variables too early, too late? Am I really not picking them up in spite of what I see on my screen? Have I missed some fundamentals of Apex here?
    Thanks in advance for your time and help.
    Jon

    Varad....here you go...thanks!
    0.16: A C C E P T: Request="CREATE"
    0.21: Metadata: Fetch application definition and shortcuts
    0.22: NLS: wwv_flow.g_flow_language_derived_from=FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language=en-us
    0.23: alter session set nls_language="AMERICAN"
    0.23: alter session set nls_territory="AMERICA"
    0.23: NLS: CSV charset=WE8MSWIN1252
    0.23: ...NLS: Set Decimal separator="."
    0.23: ...NLS: Set NLS Group separator=","
    0.23: ...NLS: Set date format="DD-MON-RR"
    0.23: ...Setting session time_zone to -08:00
    0.25: Fetch session state from database
    0.27: ...Check session 1196910493324671 owner
    0.27: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.27: Session: Fetch session header information
    0.27: ...Metadata: Fetch page attributes for application 120, page 18
    0.28: ...Validate item page affinity.
    0.28: ...Validate hidden_protected items.
    0.33: ...Check authorization security schemes
    0.33: Session State: Save form items and p_arg_values
    0.33: ...Session State: Save "P18_TASK_SEQ" - saving same value: ""
    0.33: ...Session State: Save "P18_WEEK_GROUP_SEQ" - saving same value: ""
    0.34: ...Session State: Saved Item "P18_DISCIPLINE_SEQ" New Value="1"
    0.34: ...Session State: Saved Item "P18_TASK_TITLE" New Value="Test"
    0.34: ...Session State: Saved Item "P18_TASK_PRIORITY" New Value="5"
    0.35: ...Session State: Saved Item "P18_PERCENTAGE_COMPLETE" New Value="25"
    0.35: ...Session State: Saved Item "P18_TASK_RISK" New Value="None"
    0.35: ...Session State: Saved Item "P18_TASK_IMPACT" New Value="None"
    0.36: ...Session State: Saved Item "P18_TASK_MITIGATION" New Value="None"
    0.36: ...Session State: Saved Item "P18_CREATED_ON" New Value="12-DEC-08"
    0.37: ...Session State: Saved Item "P18_CREATED_BY" New Value="jwynacht"
    0.37: ...Session State: Save "P18_CREATED_FROM_TASK_SEQ" - saving same value: ""
    0.37: ...Session State: Saved Item "P18_LAST_MODIFIED_ON" New Value="12-DEC-08"
    0.37: ...Session State: Saved Item "P18_LAST_MODIFIED_BY" New Value="jwynacht"
    0.38: ...Session State: Saved Item "P18_DELETE_FLAG" New Value="0"
    0.38: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.38: Branch point: BEFORE_COMPUTATION
    0.38: Computation point: AFTER_SUBMIT
    0.38: ...Evaluate condition "PLSQL_EXPRESSION" for computation of item: P18_WEEK_GROUP_SEQ
    0.39: Tabs: Perform Branching for Tab Requests
    0.39: Branch point: BEFORE_VALIDATION
    0.39: Perform validations:
    0.40: ...Item Not Null Validation: P18_WEEK_GROUP_SEQ
    0.40: ...Validation did NOT pass
    0.40: ...Item Not Null Validation: P18_DISCIPLINE_SEQ
    0.40: ...Item Not Null Validation: P18_TASK_TITLE
    0.40: ...Item Not Null Validation: P18_TASK_PRIORITY
    0.40: ...Item Not Null Validation: P18_CREATED_ON
    0.40: ...Item Not Null Validation: P18_CREATED_BY
    0.40: ...Item Not Null Validation: P18_LAST_MODIFIED_ON
    0.40: ...Item Not Null Validation: P18_LAST_MODIFIED_BY
    0.40: ...Item Not Null Validation: P18_DELETE_FLAG
    0.41: ...Inline validation error count = 1
    0.41: Show current page with inline validations
    0.42:
    0.42: S H O W: application="120" page="18" workspace="" request="" session="1196910493324671"
    0.43: NLS: Language=en-us
    0.43: Application 120, Authentication: CUSTOM2, Page Template: 2370905300761909
    0.43: ...Session ID 1196910493324671 can be used
    0.43: ...Application session: 1196910493324671, user=JWYNACHT
    0.43: ...Determine if user "APEX_JON" workspace "995216593441806" can develop application "120" in workspace "995216593441806"
    0.44: ...Metadata: Fetch page attributes for application 120, page 18
    0.44: Branch point: BEFORE_HEADER
    0.44: Fetch application meta data
    0.46: Computation point: BEFORE_HEADER
    0.46: Processing point: BEFORE_HEADER
    0.47: ...Recompute field lables for fields in error.
    0.48: Show page template header
    0.53: Computation point: AFTER_HEADER
    0.53: Processing point: AFTER_HEADER
    0.53: ......Do not perform process because inline validation condition found.
    0.53: ...Do not run process "Fetch Row from TASK", process point=AFTER_HEADER, condition type=, when button pressed=
    JWYNACHTLogout
    1 error has occurred
    Week Group Seq must have some value.
    0.53: Computation point: BEFORE_BOX_BODY
    0.53: Processing point: BEFORE_BOX_BODY
    0.53: Region: Task
    Task          
    Cancel
    Create
    0.55: Item: P18_TASK_SEQ HIDDEN_PROTECTED
    0.57: Item: P18_WEEK_GROUP_SEQ TEXT
    Week Group Seq
    Week Group Seq must have some value.     
    0.57: Item: P18_DISCIPLINE_SEQ TEXT
    Discipline Seq     
    0.58: Item: P18_TASK_TITLE TEXT
    Title     
    0.58: Item: P18_TASK_PRIORITY TEXT
    Priority     
    0.58: Item: P18_PERCENTAGE_COMPLETE TEXT
    %Complete     
    0.59: Item: P18_TASK_RISK TEXTAREA
    Risk     
    0.59: Item: P18_TASK_IMPACT TEXTAREA
    Impact     
    0.59: Item: P18_TASK_MITIGATION TEXTAREA
    Mitigation     
    0.59: Item: P18_CREATED_ON TEXT
    Created On     
    0.60: Item: P18_CREATED_BY TEXT
    Created By     
    0.60: Item: P18_CREATED_FROM_TASK_SEQ TEXT
    Created From Task Seq     
    0.61: Item: P18_LAST_MODIFIED_ON TEXT
    Last Modified On     
    0.61: Item: P18_LAST_MODIFIED_BY TEXT
    Last Modified By     
    0.62: Item: P18_DELETE_FLAG TEXT
    Delete Flag     
    0.62: Computation point: AFTER_BOX_BODY
    0.62: Processing point: AFTER_BOX_BODY
    0.62: Computation point: BEFORE_FOOTER
    0.62: Processing point: BEFORE_FOOTER
    0.62: Show page tempate footer
    Home
    Application 120
    Edit Page 18
    Create
    Session
    Activity
    No Debug
    Show Edit Links
    0.63: Computation point: AFTER_FOOTER
    0.63: Processing point: AFTER_FOOTER
    0.63: Log Activity:
    0.63: Execute Count=0
    0.63: End Show:

  • Get error when opening device with example code

    I look in measurement and automation tool and see my device as device 1 but when I run the "Read Dig Chan" example application I get error -200220 - "Device indentifier is invalid"

    Hey Grssmith,
    Check to make sure your device is present in the Measurement and Automation Explorer under NI-DAQmx Devices. Depending on which board you�re using it will most likely be listed under both NI-DAQmx Devices and Traditional NI-DAQ Devices. The Read Dig Chan example uses the NI-DAQmx driver so it references the device labeling under NI-DAQmx Devices. If you are using the Read Dig Chan LabVIEW example all of your available choices should populate in the pull-down menu of the I/O control.
    Please post back if you�re still having problems.
    Sarah Miracle
    National Instruments

Maybe you are looking for

  • Stumped with a MS-6135 Dual Slot2 Xeon. Can't use more than 1 CPU at a time!

    Hi. I have a MS-6135 board and I am not having much luck getting it to work.   Basically both windows and Linux both say that the Board itself is not dual capable and just 'see' one of the CPUs installed.   On linux, during the bootup on a 2.6.13 ker

  • Can I work on a different project in After Effects while rendering another (AE) project in Media Encoder?

    (I'm using the current AE CC 2014)... I've tried twice to start working on a project in After Effects while a DIFFERENT project is rendering in Media Encoder. Both times it (Media Encoder) hung up/crashed. I thought the point of a separate encoder pr

  • Message to RIM - wish list for next version

    Hi Just some thoughts based on a couple of days of use of a playbook that my IT folks lent me. Firstly, hopefully RIM will realize that the only way this will take off is if Enterprise users really buy into it but the device lacks in certain areas if

  • System time status

    Hi,   When i see menubar in systemstatussytem time and time zone are showing diffrent times,in system time its showing : 17:25:21,in time zone its showing CET,14:25:21,clarify my doubt.whats the diffrence of both. Thanku

  • HoverMenu-Reducing the width size for dropdown

    Hi, I did hover menu, in that drop down of Content Admin we are able to see the Portal content,portal content translation,web dynpro and so on.... can we reduce the size of each user list in the drop down ? Think we have to change in the css if so ho